# Install hck with Homebrew, MacPorts, Nix, pacman

Sharp cut(1) clone. Version 0.11.6 via Homebrew; verified 2026-06-15.

## Install

```sh
sudo av install brew:hck
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install hck
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hck
```

  Evidence: MacPorts ports tree: textproc/hck/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hck
```

  Evidence: nixpkgs package indexes: pkgs/by-name/hc/hck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S hck
```

  Evidence: Arch Linux sync databases: hck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:hck
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/hck>
- **Version:** 0.11.6
- **Source summary:** Sharp cut(1) clone
- **Homepage:** <https://github.com/sstadick/hck>
- **Repository:** <https://github.com/sstadick/hck>
- **Upstream docs:** <https://github.com/sstadick/hck#readme>
- **License:** MIT OR Unlicense
- **Source archive:** <https://github.com/sstadick/hck/archive/refs/tags/v0.11.6.tar.gz>
- **Last updated:** 2026-06-15T16:29:25Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- hck (cli)
- hck (alias)

## Build dependencies

- cmake
- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.11.6
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://github.com/sstadick/hck
- Upstream latest detected: v0.11.6 (current)
## Project history and usage

hck is a Rust command-line text-processing tool described by its author as a sharp cut(1) clone. It keeps the familiar field-selection niche of cut while adding regex delimiters, output-column reordering, header selection, decompression support, and speed-focused packaging.

### Project history

The public GitHub repository was created in June 2021. The README explains the name as a shortening of 'hack', a rougher form of cut, and describes the tool as a near drop-in replacement for cut that fills a gap between cut and awk.

The project deliberately does not try to become a complete CSV/TSV parser like xsv. Its stated non-goal is respecting full quoting rules; it remains a line-by-line splitter in the spirit of cut.

### Adoption history

The README documents installation through Homebrew/Linuxbrew, conda-forge, MacPorts, Debian packages from GitHub releases, Cargo, and optimized release binaries. Input package facts also list Homebrew, MacPorts, Nix, and pacman packaging.

The README includes a Repology packaging-status badge, which signals that the maintainer expects hck to be tracked across multiple distribution ecosystems.

### How it is used

Typical use is to pipe text or process files with field selections such as hck -f2,1,3-, choose regex delimiters for whitespace or unusual separators, select columns by header literal or regex, and optionally process compressed inputs when a local decompressor exists.

### Why package nerds care

hck is the kind of package CLI enthusiasts like: a small Rust replacement for a standard Unix primitive that adds just enough practical ergonomics for messy data exploration while staying scriptable. Its value is not replacing awk or CSV parsers, but reducing common one-off pipelines.

### Timeline

- 2021: Public GitHub repository created.
- 2020s: README documents packaging through Homebrew/Linuxbrew, conda-forge, MacPorts, Debian artifacts, Cargo, and release binaries.
- 2020s: Input package facts show additional Nix and pacman packaging.

### Related projects

- cut, awk, xsv, tsv-utils, choose, ripgrep-style decompression behavior, and gzp compression are related tools or inspirations named by the README.

### Sources

- <https://api.github.com/repos/sstadick/hck>
- <https://github.com/sstadick/hck>
- <https://raw.githubusercontent.com/sstadick/hck/master/README.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hck
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - hck: normalized package name match | nixpkgs package indexes: pkgs/by-name/hc/hck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - hck - 0.11.5-2: normalized package name match | Arch Linux sync databases: hck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A drop in replacement for cut that can use a regex delimiter instead of a fixed string | https://github.com/sstadick/hck
- MacPorts - hck: normalized package name match | MacPorts ports tree: textproc/hck/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [tuc](https://www.automicvault.com/pkg/brew/tuc/) - Shares av.db curated category or tags: cli, cut, developer-tools, rust, text-processing.
- [decasify](https://www.automicvault.com/pkg/brew/decasify/) - Shares av.db curated category or tags: cli, developer-tools, rust, text-processing.
- [sd](https://www.automicvault.com/pkg/brew/sd/) - Shares av.db curated category or tags: cli, developer-tools, rust, text-processing.
- [srgn](https://www.automicvault.com/pkg/brew/srgn/) - Shares av.db curated category or tags: cli, developer-tools, rust, text-processing.
- [align](https://www.automicvault.com/pkg/brew/align/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cconv](https://www.automicvault.com/pkg/brew/cconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cmigemo](https://www.automicvault.com/pkg/brew/cmigemo/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.

## Combined YAML source

View the package source record on GitHub. [combined/hck.yml](https://github.com/automic-vault/db/blob/main/combined/hck.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
