Skip to content

Instantly share code, notes, and snippets.

@gm3dmo
Created March 19, 2024 09:58
Show Gist options
  • Save gm3dmo/6adb23e24a881943e1f0da03c88f4291 to your computer and use it in GitHub Desktop.
Save gm3dmo/6adb23e24a881943e1f0da03c88f4291 to your computer and use it in GitHub Desktop.
# perl octal permission printer
perl -e 'printf "%04o %s\n", (stat)[2] & 07777, $_ for @ARGV' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment