Last active
August 29, 2015 13:55
-
-
Save rye/8754973 to your computer and use it in GitHub Desktop.
Get the users on a nix box and dump them out into a pretty table.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat /etc/passwd | cut -d: -f1,3,5,6 | grep "1[0-9][0-9][0-9]" | cut -d: -f1,3,4 | grep "/home" | cut -d: -f1,2 | column -t -s : | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment