I'm trying to rename some files from the command line but nothing gets changed. 
I think I'm leaving out something; maybe '$_'. Or, I have incorrect syntax. I 
don't get any error message either. I took a look at 'man rename', but it 
doesn't show an example of a loop. I'm using the following on the command-line:
 
perl -e 'for (`ls -1`) { rename filename, newfilename if /\w+$/}'
 
Can anyone show me the error of my ways?


                        
---------------------------------
Do you Yahoo!?
 Check out the new Yahoo! Front Page. www.yahoo.com

Reply via email to