From: "Ned" <ngranic@cox.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: how to get the last word from file
Date: Tue, 29 Mar 2005 16:57:51 -0700 [thread overview]
Message-ID: <000c01c534bb$1e15a1b0$4e31e444@nedelko83f1172> (raw)
In-Reply-To: <Pine.LNX.4.61.0503292252450.32030@nkl.local>
... provided that on most systems the last 3 bytes contain the last date of
a month.
What about this approach:
cal | tail +3 | wc -c
Many ways to do this...
Many Thanks.
Ned
----- Original Message -----
From: "Ari Moisio" <arimo@netsonic.fi>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Tuesday, March 29, 2005 12:55 PM
Subject: Re: how to get the last word from file
> 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@braille.uwo.ca
>> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
Ned
` Trevor Astrope
` Ned
` Gregory Nowak
` David Bruzos
` Ari Moisio
` Ned [this message]
` Ralph W. Reid
` Chuck Hallenbeck
` Ned
` Ralph W. Reid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000c01c534bb$1e15a1b0$4e31e444@nedelko83f1172' \
--to=ngranic@cox.net \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).