S
Shawn
Hi,
I'm trying to move a file to different directory, filename (with a date
stamp within the name).
The file starts out as: report.txt
and I want to move it so it comes out as: gl_user_rept_021804.txt
So, I have been trying different versions of this command:
system("mv /var/shawn/report.txt /var/fred/gl_sys_rept_$date.txt");
I set date = `date +m+d+y`
And I can get it close but not quite what I want:
-rw-rw-r-- 1 gp22 pnpsup 5 Feb 18 10:06 gl_user_rept.021804
-rw-rw-r-- 1 gp22 pnpsup 5 Feb 18 10:37 gl_user_rept..txt
Any suggestions would be greatly appreciated.
Thanks
I'm trying to move a file to different directory, filename (with a date
stamp within the name).
The file starts out as: report.txt
and I want to move it so it comes out as: gl_user_rept_021804.txt
So, I have been trying different versions of this command:
system("mv /var/shawn/report.txt /var/fred/gl_sys_rept_$date.txt");
I set date = `date +m+d+y`
And I can get it close but not quite what I want:
-rw-rw-r-- 1 gp22 pnpsup 5 Feb 18 10:06 gl_user_rept.021804
-rw-rw-r-- 1 gp22 pnpsup 5 Feb 18 10:37 gl_user_rept..txt
Any suggestions would be greatly appreciated.
Thanks