Shell script

Brian Densmore DensmoreB at ctbsonline.com
Tue Nov 11 22:04:03 CST 2003


'cut -f -1,2,3,... <infile> $x $y $z ...'
Might extract the columns in a tab delimited files in one loop.
I haven't tried this myself. Correct me if I'm wrong.
 

> -----Original Message-----
> From: brad [mailto:brad at bradandkim.net]
> Sent: Tuesday, November 11, 2003 2:38 PM
> To: kclug at kclug.org
> Subject: Shell script
> 
> 
> I have a tab delimited list of usernames and passwords that I need to
> run a set of system commands on.  I was thinking maybe I could build a
> for loop and assign the first entry on the line as $x and the second
> entry on the line as $y.  Is this possible?  Or am I going to have to
> use sed or awk?
> 
> Thanks in advance,
> 
> Brad
> 
> 
> 
> majordomo at kclug.org
> 




More information about the Kclug mailing list