Nettie on Nostr: Lots of core unix tools seem to be really terrible for processing in pipelines. E.g. ...
Lots of core unix tools seem to be really terrible for processing in pipelines. E.g. output from ls or ps has all sorts of pitfalls if you want to process, filter or iterate over it. Are there versions of these that generate more structured data, like JSON? I love the _idea_ of simple specialised commands that compose well, but parsing structured data with cut, sed and awk is just a garbage experience.
Published at
2024-01-19 13:30:30Event JSON
{
"id": "7aa43f561cd5cd9e20919c4af2c4f5e24befe719933fc2dcef691bf6a8458cbc",
"pubkey": "ba6a877df6c1820e03e1b5bdc94aba4955b049d71a3bb8c6b33fefcec8e8b8e2",
"created_at": 1705671030,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.scot/users/nettles/statuses/111782856652022938",
"activitypub"
]
],
"content": "Lots of core unix tools seem to be really terrible for processing in pipelines. E.g. output from ls or ps has all sorts of pitfalls if you want to process, filter or iterate over it. Are there versions of these that generate more structured data, like JSON? I love the _idea_ of simple specialised commands that compose well, but parsing structured data with cut, sed and awk is just a garbage experience.",
"sig": "5bf934a360b7c289aeb8130797fc04191a18b5362f7643f78da389a60831770ca663d90ca38e3002f23443d3efe665dc861e5312c22a5e3a845643485196b374"
}