Alternatives to hck

A close replacement for the cut command that accepts regex delimiters and reorders output columns. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as hck.

  • choose

    A command-line tool for selecting fields from text, meant as a simpler alternative to cut and awk.

    choose selects fields with a Python-style slice syntax and negative indexing, also supporting regex separators, but it is licensed GPL-3.0 rather than MIT or Unlicense.

  • GNU Coreutils

    The core GNU file, shell and text utilities, including ls, cp, mv and sort.

    GNU Coreutils provides the standard cut preinstalled on most Linux systems, but without regex delimiters or column reordering.

  • uutils coreutils

    A cross-platform rewrite of the GNU coreutils in Rust, covering commands such as ls, cp and sort.

    uutils coreutils offers a Rust rewrite of cut and the other core commands on Linux, macOS and Windows, with GNU-style rather than regex delimiters.

Similar software

Related functionality, not a direct replacement.