Re: more stupid shell tricks

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Joseph Toon
Dátum:  
Címzett: plug-discuss
Tárgy: Re: more stupid shell tricks
On Wednesday 02 February 2005 11:22 am, Craig White wrote:
> How would I delete the lines that have a '$' in them denoting a machine
> account?


Use the grep invert match switch:

getent passwd | awk -F: '$3 > 499 { print $1 }' | grep -v $ > users

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