And if you don't have it and don't feel like grabbing the entire source tarball:
#!/usr/bin/perl -w # rename - Larry's filename fixer $op = shift or die "Usage: rename expr [files]\n"; chomp(@ARGV = <STDIN>) unless @ARGV; for (@ARGV) { $was = $_; eval $op; die $@ if $@; rename($was,$_) unless $was eq $_; }
Always handy. Don't leave $HOME without it.
In reply to Re^2: Optimize file renaming.
by Fletch
in thread Optimize file renaming.
by omega_monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |