On Sat, Dec 27, 2014 at 4:44 AM, Pádraig Brady <[email protected]> wrote:

>   find -maxdepth 1 -printf '%m ' -ls


Of note, this also prints the modes that the awk script above leaves out or
otherwise mangles:

Find outputs exactly what I expect:

 4750 812805444  100 -rwsr-x---   1 root     wheel      101896 Feb  2  2014
/usr/sbin/mtr

The awk magic on the other hand, well, not so much:

 650 -rwsr-x--- 1 root wheel 101896 Feb  2  2014 /usr/sbin/mtr

So whoever wrote that bit on stackoverflow is a bit short-sighted in the
potential for errors on special modes.

I personally will alias something like 'lsoctal' to the find command.

My $0.02; inflation adjusted.

Mike

Reply via email to