[Tutor] please help: conditional statement and printing element

Alan Gauld alan.gauld at freenet.co.uk
Tue Jan 11 23:07:56 CET 2005


Good point John,

As I pointed out in another thread its best to use the right
tool for the job and in this case that is [ng]awk...

Alan G.
(a HUGE Awk fan! :-)

----- Original Message ----- 
From: <jfouhy at paradise.net.nz>
To: <tutor at python.org>
Sent: Tuesday, January 11, 2005 9:07 PM
Subject: Re: [Tutor] please help: conditional statement and printing
element


> Quoting kumar s <ps_python at yahoo.com>:
>
> > What to do:
> > I want to print values that are 25 in column 1 and not
> > the other values such as 24,22,21 etc.
>
> awk '$1 == 25' psl
>
> :-)
>
> -- 
> John.
>
>



More information about the Tutor mailing list