[Smaug] A quick scripting puzzle

Anthony Ettinger apwebdesign at yahoo.com
Sat Nov 19 19:21:28 PST 2005


--- Peter Belew <abcruzww at gmail.com> wrote:

> Another problem on the SCO SCO_SV 3.2 system I tried
> -
> cal without an argument will print 3 month's
> calendars!
> The man page says the previous, current, and next
> months.
> 
>    cal `date | cut -c5-7`
> 
> gives the current month's calendar. Note the
> different syntax
> for cut's parameter. Sigh ...

ettinger at spring ~ $ cal `date | cut -c5-7`
cal: illegal year value: use 1-9999



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



More information about the Smaug mailing list