Re: [OT] Shell scripting
Re: [OT] Shell scripting
- Subject: Re: [OT] Shell scripting
- From: Reinhold Penner <email@hidden>
- Date: Fri, 26 Dec 2003 15:22:14 -1000
I was wondering if there is a shell way to apply the formatting to an
arbitrary date string. For example get the creation/modification date
of a file and format that as easily as below.
-Reinhold
On Dec 26, 2003, at 6:51, John W. Baxter wrote:
Change the echo command to something along these lines (watch line
wrapping):
echo "AppleFileServer restarted by autoAfpCheck at `date +%H:%M\ on\
%Y-%m-%d`"
Which gives
AppleFileServer restarted by autoAfpCheck at 08:46 on 2003-12-26
man strftime
will reveal the various codes you could use instead of what I used.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.