„gtc-rename“ ändern
This commit is contained in:
parent
2b124c0814
commit
fbae1a8003
@ -1,7 +1,4 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
# before|||30.11.10|||olli|||Rename files recursively|||This script renames all filesnames (and dirs) in a specified path with specified Regex'es in a specified regex-file.<br>For e.g. to rename change the character a in all filenames to b and y into z you can create a regex file e.g. /tmp/rename with the following lines:<pre>s/a/b/g;</pre><pre>s/y/z/g;</pre># Then you run this command with the following options:<pre># $0 -p /path/in/which/you/want/to/rename -r /tmp/rename</pre>
|
|
||||||
# after
|
|
||||||
#!/usr/bin/perl -w
|
|
||||||
|
|
||||||
# === Strict Perl ===
|
# === Strict Perl ===
|
||||||
use strict;
|
use strict;
|
||||||
@ -174,8 +171,8 @@ Options:
|
|||||||
-r file\t-> The file with your Substuitutions
|
-r file\t-> The file with your Substuitutions
|
||||||
-v\t-> Be verbose
|
-v\t-> Be verbose
|
||||||
-s\t-> Dry (simulation) run
|
-s\t-> Dry (simulation) run
|
||||||
-u file\t-> Undo a job. You have to specify an undo file. The undo-files are in the .gtc-rename in yout homedir: ~/.gtc-rename
|
-u file\t-> Undo a job. You have to specify an undo file. The undo-files are in the .gtc-rename in your homedir: ~/.gtc-rename
|
||||||
";
|
";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
# ----
|
|
||||||
|
Loading…
Reference in New Issue
Block a user