Results 1 to 8 of 8
I've surfed & surfed & can't find something that helps me out on this one.
I'm creating a zip file but I need the file name to look like
FilenameMMDDYY.zip ...
- 09-12-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Creating File with Today's date
I've surfed & surfed & can't find something that helps me out on this one.
I'm creating a zip file but I need the file name to look like
FilenameMMDDYY.zip -
How do I append today's date onto the file name?
Thanks
gina
- 09-12-2007 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,095
Welcome to the forums!

Can't you just right-click the file and rename it that?oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 09-12-2007 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Ugh minor detail I forgot - actually I'm creating this file in a shell script that's running weekly which then is ftp'ing to another server.
I've got it all working except the naming piece since the person getting the data needs the files identified in such a way he knows which company is transmitting the data.
Thus I'm zipping 5 files into 1 to automatically ftp over.
So it's within a shell script that I need to do this vs manually right clicking (which does work but doesn't accomplish what I need automatically)
gina
- 09-12-2007 #4Code:
mv filename filename$(date +%m%d%y)
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-12-2007 #5Just Joined!
- Join Date
- Sep 2007
- Posts
- 3
Bingo! Thank a lot - my guess' were sort of close but would never have gotten there.
- gina
- 09-12-2007 #6
Glad to help you.

Do post back if you have any other query.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-13-2007 #7Just Joined!
- Join Date
- Sep 2007
- Posts
- 2
FileName with data
Hi
filename like xxx_sep13_2007
gzip xxx_sep13_2007
Thanks and Regards
senthil k
- 09-22-2007 #8Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044


Reply With Quote
