this post was submitted on 16 Dec 2025
39 points (93.3% liked)

Linux

10668 readers
346 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] victorz@lemmy.world 2 points 3 days ago (1 children)

I think cut is a little bit finicky because two consecutive occurrences of the cell delimiter counts, and gives an empty cell when selecting the index between them.

choose is a bit better at this from what I remember, which is like the modern cut, I believe, of course written in Rust.

Otherwise Nushell excels at this sort of thing, although I don't really use it.

[โ€“] hallettj@leminal.space 2 points 3 days ago

Oh, I hadn't heard about choose!

I have been using Nushell, and you're right, it is great at parsing input. Commands like detect columns and parse are very nice, and have been supplanting awk for me.