more stupid shell tricks

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Craig White
Fecha:  
A: plug-discuss
Asunto: more stupid shell tricks
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