|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: one liner to rename multiple files in a directory?by goeb (Pilgrim) |
| on Feb 15, 2010 at 21:16 UTC ( #823354=note: print w/ replies, xml ) | Need Help?? |
|
On a Debian system (maybe the same on others, I don't know): the perl package comes with a prename script (can usually be called as rename, without the leading p), it can rename files based on regular expressions. So it's Perl and it's only one line, something like rename 's/[crap]//' *.avi (replace crap, of course...).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||