Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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??


in reply to one liner to rename multiple files in a directory?

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...).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://823354]
help
Chatterbox?
[choroba]: which lessons?
[prospect]: Learning Perl There where 17 videos.
[prospect]: And it was great because I'm using the book as well, to get some more examples or extra information

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-09-25 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (279 votes). Check out past polls.

    Notices?