how to get the last word from file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

   Quick & dirty:-)
echo $(cal) | tail -c 3


-- 
arimo

On Tue, 29 Mar 2005, Ned wrote:

> 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
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux