cut command

cuts – Perl command-line utility

cuts is a command-line utility that enhances the traditional Unix/POSIX cut tool for extracting columns from text files.

It is designed to keep the interface simple while handling more awkward real-world data, including mixed delimiters, flexible column selection, and side-by-side extraction from multiple files.

This is free and open source software.

Key Features

  • Automatically detects common input delimiters such as commas, tabs, and whitespace sequences.
  • Supports multi-character and Perl regular expression delimiters for more complex parsing tasks.
  • Handles negative column numbers, letting you select fields relative to the end of a line.
  • Supports reverse ranges and wrap-around ranges for flexible field ordering.
  • Can extract and join columns from multiple files in a single command.
  • Uses sensible defaults, including standard input as a source and a tab as the default output delimiter.
  • Allows personal configuration through an optional ~/.cuts.pl file.
  • Treats missing fields leniently by outputting empty values instead of failing.

Website: github.com/arielf/cuts
Support:
Developer: Ariel Faigon
License: Artistic License 2.0

cuts options

cuts is written in Perl. Learn Perl with our recommended free books and free tutorials.


Related Software

Alternatives to cut
hckDrop-in replacement that can use a regex delimiter instead of a fixed string
tucDrop-in replacement for cut
chooseHuman-friendly and fast alternative to cut
ccutColum's cut
cutsPerl command-line utility
xcutExtends the traditional Unix cut tool

Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted