Created
February 26, 2018 16:59
-
-
Save Tlaloc-Es/b268a25e06e47c37a570c2cdda23e8fb to your computer and use it in GitHub Desktop.
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
ls -l | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \ | |
*2^(8-i));if(k)printf("%0o ",k);print}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment