[Info-vax] Long uptime cut short by Hurricane Sandy
David Froble
davef at tsoft-inc.com
Sat Feb 2 15:59:57 EST 2013
Paul Sture wrote:
> In article <kejke9$lu9$3 at dont-email.me>,
> David Froble <davef at tsoft-inc.com> wrote:
>
>> Paul Sture wrote:
>
>>> Here's the bash I use to format a daily backup prefix:
>>>
>>> # Get date as YYYY.MM-DD-HHMM
>>> NOW=$(date +"%Y-%m-%d-%H%M")
>>> DUMPID="sture-$NOW"
>>> echo $DUMPID
>>>
>>> Sample output:
>>>
>>> sture-2013-02-02-1507
>>>
>> So, which is wrong here, the comment or the result? (No "." in result
>> after "YYYY")
>
> Mea culpa. Finger trouble. It should of course read as
>
> # Get date as YYYY-MM-DD-HHMM
>
> (I just decided to add the comment to my backup script after reading
> this thread, because although it's obvious to me, it's maybe not to
> others.)
>
A comment that is wrong can be worse than no comment at all ...
:-)
More information about the Info-vax
mailing list