Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: file compare and renaming

by brx (Pilgrim)
on Apr 20, 2012 at 06:53 UTC ( [id://966106]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ls | perl -nle '$a=$_;s/.*?(S\d\dE\d\d).*?\.(avi|srt)/LikeABoss${1}Yea
    +h.$2/;print  "$a => $_"'
    
  2. or download this
    ls | perl -nle '$a=$_;s/.*?(S\d\dE\d\d).*?\.(avi|srt)/LikeABoss${1}Yea
    +h.$2/;rename $a,$_'
    
  3. or download this
    ls | wc -l
    
  4. or download this
    ls | perl -nle '$a=$_;s/.*?(S\d\dE\d\d).*?\.(avi|srt)/LikeABoss${1}Yea
    +h.$2/;$h{$_}++}{print scalar keys%h'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://966106]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found