Hi Gurus,
I have some files(all ending with .out as extension).
Ex:
aa1.out
aa2.out
aa3.out
I would like to append each file with the current date to the end of the file so that they should become aa1_20090504.out.
So I am using rename as follows:
for i in path/aa* ; do mv $i `basename dd`_`date +"%Y%m%d"`.out ; done ;
But when I rename, they become as "aa1.out_20090504.out".How can I remove the ".out" extension in the file which comes after the aa1?