[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] another scripting question



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