Anthony E. Greene <[EMAIL PROTECTED]> wrote:
>currdate=`date -s +%Y%m%d`
>mv myfile myfile.$currdate

Correction:
Don't use the "-s" option. The syntax that Robert used is best. The date
format I used will enable sorting by filename, assuming the files have the
same base name.

  mv myfile myfile.$(date +%Y%m%d)

 --Tony



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to