Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
General
:
Perl Programming
:
Date for tar
Previous Thread
Next Thread
Print Thread
View Threaded
Jul 5, 2001, 11:38 AM
SamX
Novice
(24 posts)
Jul 5, 2001, 11:38 AM
Post #1 of 2
Views: 2188
Shortcut
Date for tar
How could I add a date format when taring a file on Unix. I saw this information but now cant find it.
Thanks!
Jul 5, 2001, 11:42 AM
Eraser
Enthusiast
(619 posts)
Jul 5, 2001, 11:42 AM
Post #2 of 2
Views: 2075
Shortcut
Re: Date for tar
In reply to
Try this...
tar cvf `date +destinationfilename_%m-%d-%y.tar` filetotar
This gives you: destinationfilename_07-05-01.tar
Just change around
%m-%d-%y
to suit your country date format.
Eraser:
Insight Eye
http://www.insighteye.com/
Previous Thread
Next Thread
Print Thread
View Threaded