[ILUG-BOM] RE: regexp query

Devdas Bhagat devdas@[EMAIL-PROTECTED]
Thu Dec 11 09:55:15 IST 2003


On 11/12/03 09:25 +0530, Parul.Mathur wrote:
> Hi,
> 
> If the names and addresses in your text file are separated by one or more tabs, you can try this on the *nix command line:
> 
> cat <text-file-name> | expand | tr -s " " | cut -d ' ' -f1 > <another-text-file-name>
tr -s works fine for any whitespace other than IFS.

Try this input:
Devdas Bhagat  devdas at dvb.homelinux.org
Philip S Tellis		philip at ncst.ernet.in
Parul Mathur	parul.mathur at india.rsystems.com
Dr. Shahrukh K. R. Pavri	sparvi at vsnl.com

Devdas Bhagat



More information about the Linuxers mailing list