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

Re: perl->AWK!



I like "cut" and "paste".

For the task below, I'd use:

	cut -d: -f1,4,5 /etc/passwd

Charlie

-----Original Message-----
From: silug-discuss-owner@silug.org
[mailto:silug-discuss-owner@silug.org]On Behalf Of Mike808
Sent: Friday, January 04, 2002 8:52 PM
To: silug-discuss@silug.org
Subject: Re: perl->AWK!


frog@intertek.net wrote:
> so if you telnet into a radius server that doesn't have perl installed
> with the Net::Telnet (thanks for the tips by the way ) awk would be a
> better tool for parsing colon delimited  files?

e.g. awk -F: '{print $1,$4,$5}' /etc/passwd 

Mike808/
-- 
perl -le "$_='7284254074:0930970:H4012816';tr[0->][ BOPEN!SMUT];print"

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.