Eugene Smiley on 6 Nov 2007 00:26:01 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Ubuntu (& Debian & Linux) rule


Matthew Rosewarne wrote:
Oh yeah, then I had to rename 100+ files.  On Windows I'd use Excel to
write a batch file to do it (unless the data was saved on my Samba
server, which it usually is).  On Linux, this trivially did the trick:
	$ for i in ?.MPG;  do mv $i "00$i"; done
	$ for i in ??.MPG; do mv $i "0$i"; done

You might want to check out mmv, renameutls, and/or krename.

And i know that this is stretching the scope of the list a bit, but for Windows there is a Free utility called Renamer that gives you all kind of renaming options. I use it since I've taken 18,000 pictures with my camera, but Nikon only numbers up to 9999. To keep from duplicating filenames, I run Renamer to insert a 1 in the 5th position. Soon it'll become a 2.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug