vmaxx Site Admin

Joined: 27 Dec 2003 Posts: 132
|
Posted: Thu Jul 20, 2006 1:05 am Post subject: Code to rename file with the date in the filename |
|
|
| Code: | NOW=$(ls -l --time-style="+%b %e, %Y %k%M" a.txt | awk '{ print $6"-"$7"-"$8 }' | sed -e 's/,//g')
cp a.txt $NOW.a.txt
|
|
|