On Thu, 23 Jan 2003, Jan wrote: > 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!
more to the point, you should decide exactly what format you want that date extension in, and "man date" to see the options through which you can generate that format. eg $(date +%d%m%y) that sort of thing. rday -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list