Announcing `tuc`, a utility similar to coreutils `cut`, but more powerful.
It allows to split text or bytes into parts and reassemble them in any order.
I always found `cut` very practical for some tasks where `sed` or `awk` were overkill or awkward to use, but I also felt the need for more features.
Some key differences from `cut`:
- parts can be referenced by negative indexes
- delimiters can be any number of characters long, or match a regex
- can split text into lines, and reassemble them
While not my primary role at my job, I often find myself dealing with lots of disparate data sets, usually needing to do some sort of manipulation, cleaning, searching, etc. Every now and then encounter something like this and it seems to me that there are potentially a nice set of command line tools/utilities that I should be adding to my belt. Anywhere I should particularly start taking a look? Like, if my goal is to because much better at wrangling CSV/text-delimited files, searching across folders of docs for numbers, etc., where is my first entry point into trying to become much more proficient at it?