how to get the last word from file

Ned ngranic at cox.net
Tue Mar 29 14:17:43 EST 2005


Hi list,
I am using the cal command to get current month. What I need for my shell script is how many days are there in the current month, that is, the last listed date for that month is that very number.
How can I get that number?
cal | tail -1
and then what?

Many thanks!
Ned


More information about the Speakup mailing list