Dear all,
ls *.log | awk '{
oldfile=$0;
split($0,newfile,".");
dtstamp=date;
print "mv " oldfile " " newfile[1]"."xxx;
}' > mv.sh
what should I put in the xxx such that the current day becomes the extension of the files? thank you very much!
Start Free Trial