Skip to content

Instantly share code, notes, and snippets.

@sheeplogh
Created August 31, 2012 07:56
Show Gist options
  • Save sheeplogh/3550039 to your computer and use it in GitHub Desktop.
Save sheeplogh/3550039 to your computer and use it in GitHub Desktop.
[shell] List file-permissions in octal notation
$ find ./20120831_testdir -type f -print0 | xargs -0 stat --format='%a %N' | sed -e "s/[\`']//g"
755 ./20120831_testdir/2009032/httpdconf.pl
777 ./20120831_testdir/showmod.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment