[TUHS] Command line options and complexity

Greg 'groggy' Lehey grog at lemis.com
Fri Mar 13 09:57:35 AEST 2020

On Thursday, 12 March 2020 at 17:48:07 +1100, Peter Jeremy wrote:
> On 2020-Mar-11 20:53:12 -0400, Steve Nickolas <usotsuki at buric.co> wrote:
>> On Thu, 12 Mar 2020, Greg 'groggy' Lehey wrote:
>>> a better choice in removing options would be to remove -h and use a
>>> filter to mutilate the sizes:
>>>  $ ls -l | humanize
> How does humanize decide which column to work on?

It knows.  It was written that way.

> If it only works on "ls -l", then it's not useful if I want other
> columns as well.

Right.  You'd have to change it.  Recall that this was just an

> Maybe it could just humanize any large number it found, but you
> probably don't want to "humanize" the inode number or filename.

Yes, this is exactly the scenario I described in an earlier mail
message, where I called it

  $ ls -l | commafy 5

Sent from my desktop computer.
Finger grog at lemis.com for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200313/527dd837/attachment.sig>

More information about the TUHS mailing list