[Info-vax] Long uptime cut short by Hurricane Sandy
Paul Sture
nospam at sture.ch
Sun Feb 3 09:01:09 EST 2013
In article <kejun9$g7l$1 at dont-email.me>,
David Froble <davef at tsoft-inc.com> wrote:
> 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 ...
>
> :-)
How very true!
--
Paul Sture
More information about the Info-vax
mailing list