Re: Help Renaming Multple Files

2005-03-07 Thread Uwe Doering
Phusion wrote: I need help figuring out how to rename multple files. The files are named like reports_abcdef_MMDD.dat, reports_hijklm_MMDD.dat, and reports_nopqrs_MMDD.dat. Here is an example. Original Filename: reports_abcdef_MMDD.dat New Filename: abcdef_MMDD.dat Let me know h

Re: Help Renaming Multple Files

2005-03-07 Thread joseph kacmarcik
> I need help figuring out how to rename multple files. The files are > named like reports_abcdef_MMDD.dat, reports_hijklm_MMDD.dat, > and reports_nopqrs_MMDD.dat. Here is an example. > > Original Filename: reports_abcdef_MMDD.dat > New Filename: abcdef_MMDD.dat > > Let me kn

Re: Help Renaming Multple Files

2005-03-07 Thread Frank de Bot
for files in `ls`;do newfile=`echo $files | sed "s|^reports_||g"`;mv $files $newfile;done it's unproved code at the moment, but it gives an idea how to do it. Phusion wrote: I need help figuring out how to rename multple files. The files are named like reports_abcdef_MMDD.dat, reports_hijklm

Help Renaming Multple Files

2005-03-07 Thread Phusion
I need help figuring out how to rename multple files. The files are named like reports_abcdef_MMDD.dat, reports_hijklm_MMDD.dat, and reports_nopqrs_MMDD.dat. Here is an example. Original Filename: reports_abcdef_MMDD.dat New Filename: abcdef_MMDD.dat Let me know how I can do t