In need of a bit of shellish magic
Ben Scott
dragonhawk at gmail.com
Fri Jun 2 16:53:01 EDT 2006
On 6/2/06, Michael ODonnell <michael.odonnell at comcast.net> wrote:
> % timeStamp="`date '+%Y%m%d%H%M%S'`"
FYI, "date -I" is much easier to type. Make it "date -Is" if you
need it down to the seconds.
The "-I" switch is short for ISO-8601, which apparently specifies
dates as "all numeric, most significant component first". Which is
handy, because then the files sort properly in directory listings.
-- Ben
More information about the gnhlug-discuss
mailing list