D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] getchar for bash?

 

Simon Waters wrote:
> Simon Waters wrote:
>> Neil Williams wrote:
>>> Perl.
>> Or Google and find.....
> 
> For completeness I searched for an awk based solution, as in awk it is
> something like;
> 
> /re/ { print $1 }

$ cat stuff | awk '/[a-z]*/ { print $1 }'
Return-Path:

You what?

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html