[ale] another scripting question

Wandered Inn esoteric at denali.atlnet.com
Wed Dec 1 16:00:25 EST 1999


Zhongbin Yu \"jerry\" wrote:
> 
> cat /etc/passwd | cut -d ":" -f 1
> will do what you want.

You know you really don't want to pipe unless you have to.  It's another
process, so:

cut -d ":" -f1 /etc/passwd

do the same.

So will:

awk -F':' '{print $1}' /etc/passwd

--
Until later: Geoffrey		esoteric at denali.atlnet.com

It should be illegal to yell "Y2K" in a crowded economy.
	-- Larry Wall, creator of the programming language Perl






More information about the Ale mailing list