Skip to content

Instantly share code, notes, and snippets.

@joeashcraft
Created January 22, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeashcraft/1d45a48086ac43124562 to your computer and use it in GitHub Desktop.
Save joeashcraft/1d45a48086ac43124562 to your computer and use it in GitHub Desktop.
list lines from "/etc/passwd" for non-system users
#!/bin/bash
getent passwd | awk -F':' '{ if ($3 >= '$(awk '/^UID_MIN/ {print $2}' /etc/login.defs)') print }'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment