D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] making up filenames by time?



Adrian Midgley wrote:

What do I do with shell variables or ` date `  or whatever to do that, or is
there something built in?

Something like....

NAME=$DIR/`date +%H%M`suffix

info date - for other format modifiers

US Military format i.e. YYYYMMDDHHMM has much to recommend it as
numerical order and date order coincide, as does say ignoring
daylight saving (Think what may happen when the clocks go
backward).

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly