Jianping Zhu wrote:
I have redhat 7.3, i want to use currnt date as file extension by usingLike this:
following command.
mv myfile myfile.${`date`}
but it does not work.
how to do that? Thanks
mv myfile "myfile.$(date)"
- $() with round brackets is the one to use. However, that leaves you with a filename with embedded spaces!
/jan
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list