On Thu, 01 Jun 2000, Tony Cook generated:

>perl -F: -anle 'print $F[0]' </etc/passwd
>
>but I like the cut solution best.

just because it hasn't been mentioned yet:

sed 's/\:.*$//'

-- 
jamesw

Heuristics are bug ridden by definition. If they didn't have bugs, then
they'd be algorithms.
------------------------------
[EMAIL PROTECTED]
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to