HowTo make a file with the timestamp at the end of the file name
30 Aug
2002
30 Aug
'02
19:06
I'm trying to make a logfile with the timestamp at the end of the file when it was made. Example file name: process_log.30Aug21:03:07 The next time the file is made the name of the file would be the same except for the current date and time. Jay
30 Aug
30 Aug
19:19
New subject: [SLE] HowTo make a file with the timestamp at the end of the file name
On Fri, Aug 30, 2002 at 09:06:25PM +0200, henjay wrote:
I'm trying to make a logfile with the timestamp at the end of the file when it was made.
Example file name:
process_log.30Aug21:03:07
If you are creating the file in shell, then the following will do the trick: process_log.`date +%d%b%k:%M:%S` Please read man page of date(1) command if you want to know more about formats in date command. Regards, -Kastus
8145
Age (days ago)
8145
Last active (days ago)
1 comments
2 participants
participants (2)
-
henjay
-
Konstantin (Kastus) Shchuka