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
> 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
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
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