[ILUG-BOM] regexp query

Vinayakam Murugan vinayak@[EMAIL-PROTECTED]
Thu Dec 11 09:32:04 IST 2003


how about

cat <textfile> | awk -F" " '{print $1}'
On Wednesday 10 December 2003 18:00, Dr. Sharukh K. R. Pavri. wrote:
> I have a text file in the format
>
> Full name	email at ddress
>
> It's a pretty long list of names and I want to remove all the email
> addresses from the file. I basically want to be left with a file with
> only the names of the persons, one on each line.
>
> I tried :s [a-z]\@[a-z] //g    in vim but it did not work. It says
> E59: invalid charcter after \@
>
> how can I do this ?
>
> thanks,
>
> Sharukh.
> --
> Dr. Sharukh K. R. Pavri.
> Mumbai, India.

-- 
Warm Regards
~~~~~~~~~~~~~~~~~~~~~~~
Vinayakam Murugan

http://www.TheArgonCompany.com

Viruses getting you down?
Get your virus protected mailbox at http://www.tassm.com

It's not just about natural talent – it's about perseverance, about putting 
building blocks in place, about focusing on the processes not the results.




More information about the Linuxers mailing list