Re: more stupid shell tricks

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy C. Reed
Dátum:  
Címzett: plug-discuss
Tárgy: Re: more stupid shell tricks
> In fact, the final solution - in case anyone wants it...
>
> getent passwd | awk -F: '$3 > 499 && $3 < 10000 { print $1 }' \
> | grep -v '\$' > /root/scripts/users


By the way, awk can check for the dollar sign also.

Something like ... && $1 !~ /\$/

Jeremy C. Reed

                 technical support & remote administration
                http://www.pugetsoundtechnology.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss