
tuc
Select and format fields from text with tuc, a command-line alternative to cut.

About tuc
tuc is a command-line tool that cuts text or bytes where a delimiter matches and keeps selected parts. It can select fields, characters, bytes, or lines using 1-indexed positions, ranges, negative indexes, and reordering, with text or regular-expression delimiters, delimiter replacement, and {} output formatting.
Input can come from stdin or a file. Memory use varies by mode: --bytes loads the whole input in memory, --lines can load the whole input with unordered or negative selections or with -p or -m, and --fixed-memory works only with single-byte delimiters, ascending fields, -z, -j, and -r.
Key features
- Select fields with ranges, negative indexes, and reordering
- Cut by bytes, characters, fields, or lines
- Use text delimiter or regular expression as delimiter
- Replace delimiter or format output with {} syntax
- Output selected fields as JSON array of strings
- Set fallback text for out-of-bound fields
- Supports negative indexes, ranges, reordering, and {} output formatting
- Can cut by fields, characters, bytes, or lines, including regex delimiters
- Provides a WebAssembly playground to try without installing
- --bytes allocates the whole input in memory
- --lines allocates the whole input with unordered or negative fields, or with -p or -m
- --fixed-memory works only with single-byte delimiters, ascending fields, -z, -j, -r
tuc at a glance
- Website
- github.com/riquito/tuc
- Category
- Software & Utilities › File Utilities
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for File Utilities

tuc alternatives
Tools and sites you could use instead, ranked by how closely they match.
Browse and print file contents with bat, a command-line cat alternative documented in this repository.
fd provides a simple alternative to the find command, according to its project description.
F2 batch-renames files and directories through a cross-platform command-line tool written in Go.
lsd provides a modern alternative to the ls command, according to its repository description.
Deark analyzes file formats and metadata, extracts data, decompresses content, and decodes image formats through a command-line utility.
mat2 removes metadata from commonly used file formats and is written in Python, according to its repository description.
Popular in File Utilities
Well-known listings from the same topic.
tuc FAQ
How can I install tuc with cargo?
Can I try tuc without installing it?
What happens when a requested field does not exist?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












