On Thu, Jan 23, 2003 at 10:56:09AM -0500, 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.

[ewilts@corpftp ewilts]$ cat savefile
#!/bin/bash
currdate=`date +%Y-%m-%d`
cp -pv $1 $1.$currdate

I've been doing this by hand before I edit any system file, but this
finally convinced me to write the short script.

-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program



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

Reply via email to