Walt Mankowski on 6 Nov 2007 05:07:26 -0000


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

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


On Mon, Nov 05, 2007 at 07:38:56PM -0400, Matthew Rosewarne wrote:
> On Monday 05 November 2007, JP Vossen 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.

There's also rename(1), part of util-linux, that lets you specify the
renaming rules with perl regular expressions.

Walt

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
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