Re: more stupid shell tricks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Garfias
Date:  
To: plug-discuss
Subject: Re: more stupid shell tricks
getent passwd | awk -F: '$3 > 499 { print $1 }' | grep -v '$' > users

Craig White spoke forth with the blessed manuscript:
> getent passwd | awk -F: '$3 > 499 { print $1 }' > users
>
> gets me a list of all users...which is good. But I have some 'samba
> machine accounts' which look like 'dell-4600c$' and I want to filter
> them out of this command or file (I don't care if it's another step.
>
> How would I delete the lines that have a '$' in them denoting a machine
> account?
>
> Craig
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

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