logoalt Hacker News

behnamohyesterday at 6:39 PM3 repliesview on HN

I wish pipes would transfer more than just text to avoid re-parsing.


Replies

somatyesterday at 7:38 PM

Pipes don't transfer text, they transfer a unformatted byte stream. The commands however do expect a particular format. There is going to be serialization/parsing regardless of the format the command expects. Even if it is an internal object format as found in powershell commands.

show 1 reply
allegrettoyesterday at 7:28 PM

Could I introduce you to https://www.nushell.sh/, kind sir?

Started using it last year and being able to type ‘ls | sort-by modified -r | take 5’ feels liberating.

show 1 reply
matt_kantoryesterday at 6:47 PM

To be fair they really transfer bytes, which can be any data format you want.