how to get the last word from file

Ned ngranic at cox.net
Tue Mar 29 15:00:36 EST 2005


Sure it works--
but looks like Chinese to me...
"`...
1 day ago...
I'll study it.
Many thanks
By the way, anybody knows of a remote system where I can check the teraterm 
pro?
Those at school wouldn't let me get connected with anything other than the 
putty because of the security reasons; I need to ask them for a special 
permition to use this client, but I want to know how much better is it than 
the putty. Is it only telnet?


Thanks a lot!
Ned
----- Original Message ----- 
From: "Trevor Astrope" <astrope at tabbweb.com>
To: "Speakup is a screen review system for Linux." <speakup at braille.uwo.ca>
Sent: Tuesday, March 29, 2005 12:35 PM
Subject: Re: how to get the last word from file


> Try something like this:
>
> date +"%d" --date="`date +\"%b 1 1 month\"` 1 day ago"
>
>
> There's probably a simpler way using the date command, but that should 
> work.
>
>
> Hth,
>
> Trevor
>
> 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
>>
>>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 





More information about the Speakup mailing list