The GNU Core Utilities or coreutils is a package of GNU software containing implementations for many of the basic tools, such as cat, ls, and rm, which are used on Unix-like operating systems.
Every day, we use many command-line tools to manage our systems, and perform basic tasks. Many of the programs provided by coreutils are staples in our daily life. Over the years, these tools have been updated and ported to other systems, but they still retain many of their original traits.
cut is one of the many utilities included with coreutils. cut writes to standard output selected parts of each line of each input file, or standard input. This lets us extract elements by defining ranges, delimiting characters and bytes. It’s not as widely known as some of its counterparts but it can still be a useful and practical command-line utility. cut doesn’t offer sophisticated field processing, like reordering fields, and handling fields aligned with blank characters.
tuc is a similar tool to cut but offers additional functionality. It allows us to split text or bytes into parts and reassemble them in any order. Parts can be referenced by negative indexes, and delimiters can be any number of characters long. It is particularly strong at extracting data from comma-separated lists.

Summary
tuc is a more powerful replacement for cut. It’s just reached it’s 1.0.0 release with this release having the regex feature enabled by default for the first time. The developer now provides tuc-lite which is tuc without regex support..
The project provides pre-built binaries for Linux (Ubuntu), macOS, and Windows. But it’s trivial to compile the source code.
Website: github.com/riquito/tuc
Support:
Developer: Riccardo Attilio Galli
License: GNU General Public License version 3.0
tuc is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Alternatives to cut | |
|---|---|
| hck | Drop-in replacement that can use a regex delimiter instead of a fixed string |
| tuc | Drop-in replacement for cut |
| choose | Human-friendly and fast alternative to cut |
| ccut | Colum's cut |
| cuts | Perl command-line utility |
| xcut | Extends the traditional Unix cut tool |
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.