Re:Hacking ls -l
by ghostfish on Saturday October 13, 2012 @04:36PM
(#4649606)
My thoughts exactly. This is just complexity for complexity's sake. Useful as an exercise, but the -h flag already does this is an even more readable manner.
[ Parent
| on HN ]
Re:Hacking ls -l
by bajsejohannes on Saturday October 13, 2012 @04:57PM
(#4649675)
This works with sorting, and it's easier to pick big files out at a glance. I would use this as often as -h
`ls -lhS` works just fine to sort with human-readable sizes, at least on Fedora.
You could also use 'ls -lh | sort -h'.
Re:Hacking ls -l
by sliverstorm on Saturday October 13, 2012 @10:32PM
(#4650409)
I believe that's only supported in newer versions of sort.