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
4 Likes