[TriLUG] possible awk/grep question

Rodney Radford rradford at mindspring.com
Thu Jan 17 14:10:31 EST 2008


This should work for you:

ssh $machine cat /etc/passwd | (while read USR F2 F3 GID F5; do
       if [ $GID -eq 100 ]; then
               echo $USR
       fi
done)


-----Original Message-----
>From: Joseph Mack NA3T <jmack at wm7d.net>
>Sent: Jan 17, 2008 2:08 PM
>To: Triangle Linux Users Group General Discussion <trilug at trilug.org>
>Subject: Re: [TriLUG] possible awk/grep question
>
>On Thu, 17 Jan 2008, Brian McCullough wrote:
>
>> Have you tried "-", Joe?  This is just off the top of my head, but
>> something like:
>
>well I tried...




More information about the TriLUG mailing list