public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* how to get the last word from file
@  Ned
   ` Trevor Astrope
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Ned @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 how to get the last word from file Ned
 ` Trevor Astrope
   ` Ned
     ` Gregory Nowak
 ` David Bruzos
 ` Ari Moisio
   ` Ned
 ` Ralph W. Reid
   ` Chuck Hallenbeck
   ` Ned
     ` Ralph W. Reid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).