[Smaug] A quick scripting puzzle

Anthony Ettinger apwebdesign at yahoo.com
Fri Nov 18 10:37:40 PST 2005


that's not the questions. That's last sunday, not last
sunday of the month.

--- Ignacio Solis <isolis at igso.net> wrote:

> * Peter Belew (abcruzww at gmail.com) said:
> > Wow!
> > 
> > On 11/18/05, Anthony Ettinger
> <apwebdesign at yahoo.com> wrote:
> > > echo `cal|rev`|rev|cut -b-2
> 
> Funny and convoluted, I would have done:
> 
> date -d "last sunday" +%d
> 
> Nacho
> 
> -- 
> Homepage:       http://www.igso.net/~isolis/      | 
> EEE8 08C9 FBAE B471 9691
> GPG Public Key: http://www.igso.net/isolis.gpg    | 
> CE7A 1CC8 D3DE B31E 10AB
> > _______________________________________________
> Smaug mailing list
> Smaug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/smaug
> Smaug home page: http://www.scruz.org/


Anthony Ettinger
ph: (408) 656-2473
web: http://www.apwebdesign.com



More information about the Smaug mailing list