Created
June 12, 2015 02:44
-
-
Save Jaesin/657ffd0e838b5cb634b1 to your computer and use it in GitHub Desktop.
Get the user shell for user in OS X
This file contains hidden or 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 | |
dscl . -read /Users/$user UserShell | sed s/^UserShell:\ // |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment