![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl: Extracting date from file name and comparing with current date | MKNENI | Shell Programming and Scripting | 4 | 03-26-2008 04:01 PM |
| Changing Creation Date to a Prespecified Date of a File In Unix | monkfan | UNIX for Dummies Questions & Answers | 4 | 11-28-2006 07:15 AM |
| creating a new file with date stamp | mgirinath | Shell Programming and Scripting | 2 | 02-28-2006 12:00 PM |
| Shell script for Creating Directory with name as system date | aarora_98 | Shell Programming and Scripting | 7 | 12-07-2005 08:14 AM |
| Creating file with date/timestamp in it | ccpjr29 | Shell Programming and Scripting | 7 | 03-04-2002 04:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I would like to create an archive of backup files
In doing so I would like to be able to create a file basically called filname.`date`.arch With each try I get something completly different - so how do I get just say zip the entire directory > filename.may092001.arch Any ideas - I really botched that one - I need to know how to get all the other characters outta the date command and then use it as a variable to make the filename. |
|
||||
|
hey n9ninchd
I'm not sure if I understood your question, but if you just want the numerical date format you can just specify the date command to be format thus: `date "+%m%d%y"` which will return 050901 for example (todays date - 9th May 2001) Hope this helps. Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|