Created
August 4, 2015 12:06
-
-
Save commonquail/7386eacbddb1f99b11e6 to your computer and use it in GitHub Desktop.
List human readable and octal file permissions for the specified file or files in the current directory
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/sh | |
# Lists human readable and octal file permissions for the specified files. | |
# If no files are specified, lso is invoked for all files in the current | |
# directory. | |
arg="$@" | |
[ "$arg" = '' ] && arg="*" | |
stat -c '%A %a %n' $arg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment