Jianping Zhu wrote:
I have redhat 7.3, i want to use currnt date as file extension by using
following command.
mv myfile myfile.${`date`}
but it does not work.
how to do that? Thanks

Like this:

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


Reply via email to