News for hackers. Stuff that matters.
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.
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
Re:Hacking ls -l by cheald on Saturday October 13, 2012 @05:10PM (#4649719)
`ls -lhS` works just fine to sort with human-readable sizes, at least on Fedora.
Re:Hacking ls -l by runejuhl on Saturday October 13, 2012 @08:29PM (#4650212)
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.