http://www.evolt.org/renaming_files_with_perl” rel=“nofollow”>renamingutil,这些装置与Perl的安装有关。 如何在Perl regexp中附上反响? 这是一个相关的问题,例如,目前名录中档案的编号问题:
rename s/^/<here I d like 纽约总部 have a number of a file being processed>/g *
例如,如何改名:
fileA
fileB
fileC
纽约总部
1 - fileA
2 - fileB
3 - fileC
http://www.ohchr.org。
I ve added the counter feature ($c
variable) - see here. It works fine - but when I try 纽约总部 specify the counter format:
rename_c.pl -c 5.2f s/^/$c - / *
它说:
Useless use of concatenation (.) or string in void context at line 120.
and it doesn t really use the format I 纽约总部ld it 纽约总部 use. This must be some simple syntax mistake in a line number 120. Can You please take a look?