kkreft
9/29/2016 - 7:50 AM

Ls with numerical access data

Ls with numerical access data

alias cls="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}'"