[sf-lug] I need a quick piece of code..
a_kleider at yahoo.com
Thu Dec 31 07:27:52 PST 2009
It would be good to have the problem defined.
So far the assumption has been that you want to return the last line of a file which you happen to know will be an integer- I'm doubting that that is the real problem.
Could it be the more general problem of returning all integers? ..integers on single lines by them selves? .. what are the other possibilities????
This seems like the perfect little exercise for the python class held (over the holidays: somewhat irregularly) on Monday evenings.
--- On Wed, 12/30/09, John F. Strazzarino <jstrazza at yahoo.com> wrote:
> From: John F. Strazzarino <jstrazza at yahoo.com>
> Subject: [sf-lug] I need a quick piece of code..
> To: "SFLUG Mailing List" <sf-lug at linuxmafia.com>
> Date: Wednesday, December 30, 2009, 10:25 PM
> have a three line text file
> This is a test
> blank line
> The last line of the file is a number and I need just
> that number....
> I know that this must be a combo of tail and grep
> Can anyone help......nothing fancy is needed...
> -----Inline Attachment Follows-----
> sf-lug mailing list
> sf-lug at linuxmafia.com
> Information about SF-LUG is at http://www.sf-lug.org/
More information about the sf-lug