Show HN: Tuc – When cut doesn’t cut it

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

241 points riquito 4 years ago 115 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton