StringZilla 🦖 Command-Line Interface

Most text processing command-line utilities have obscure syntax, limited portability across operating systems, can't deal with larger-than-memory datasets, and are not actively leveraging modern SIMD capabilities, such as AVX-512 on x86 and SVE on ARM.
This utility is written in Rust, leveraging StringZilla for both pipe and file-based text processing across Linux, macOS, and Windows.
Search plain text, compressed archives, SQLite tables, Git repositories and Jupyter notebooks, selecting the fields that carry the text you need.
Install it straight from the GitHub repository:
cargo install --git https://github.com/ashvardanian/StringZilla-CLI --tag v0.1.0 --locked # pinned release
cargo install --git https://github.com/ashvardanian/StringZilla-CLI --locked # or the tip of main
cargo install --path . --force --locked # or a local clone
Coding agents can pull the bundled skills from the same repository, which teach them the multi-pass editing workflow and where Unicode folding changes an answer:
/plugin marketplace add ashvardanian/StringZilla-CLI # Claude Code, then /plugin install stringzilla-cli@stringzilla
codex plugin marketplace add ashvardanian/StringZilla-CLI # Codex, then /plugins
Codex and Pi also read .agents/skills/ up to the repository root, so a clone needs neither command.
It provides the following subcommands:
sz-find: literal substring search with full Unicode case folding, so --ignore-case strasse finds "Straße"
sz-replace: literal find-and-replace with the same folding, 18x faster than GNU sed s///g
sz-segment-utf8: UAX-29 and UAX-14 grapheme, word, & sentence bounds without ICU
sz-dedup: drops repeats in input order without sorting, 4x faster than awk '!seen[$0]++'
sz-count: wc counts about 4x faster than GNU, with --fields chars for code points
sz-sort: stable sort in LC_ALL=C byte order, 3-4x faster than GNU sort
sz-rows: rows by index, range, stride, or tail, replacing sed -n, head, tail, and awk NR==N
sz-cols: columns in the order you name them — --columns 3,1, which cut cannot do
sz-split: splits by lines, bytes, or a delimiter line, 5x faster than csplit
sz-sha256: sixteen files hashed per instruction, 6x faster than GNU sha256sum
sz-outline: experimental tool for sampling file sections for LLM contexts
Every release also carries prebuilt binaries for Linux, macOS and Windows on both x86-64 and arm64, so nothing has to be compiled.
One binary per operating system and architecture covers every CPU of that architecture: StringZilla picks its SIMD tier at load time, so the same sz-find reaches for AVX-512 on Ice Lake, NEON on Apple silicon and SVE on Graviton.
The Linux builds are statically linked against musl, needing no glibc and running on Alpine or inside a scratch container as readily as on Ubuntu:
# Swap the triple for aarch64-unknown-linux-musl, or {aarch64,x86_64}-apple-darwin
$ curl -L https://github.com/ashvardanian/StringZilla-CLI/releases/download/v0.1.0/stringzilla-cli-v0.1.0-x86_64-unknown-linux-musl.tar.gz | tar -xz
$ sudo install -m 0755 stringzilla-cli-v0.1.0-x86_64-unknown-linux-musl/sz-* /usr/local/bin/
# Or on Debian and Ubuntu, amd64 or arm64 — static, so it pulls in nothing
$ curl -LO https://github.com/ashvardanian/StringZilla-CLI/releases/download/v0.1.0/stringzilla-cli_0.1.0_amd64.deb
$ sudo dpkg -i stringzilla-cli_0.1.0_amd64.deb
# Every release ships a SHA256SUMS, so an archive can be checked before it is unpacked
$ curl -LO https://github.com/ashvardanian/StringZilla-CLI/releases/download/v0.1.0/SHA256SUMS
$ sha256sum -c SHA256SUMS --ignore-missing
The macOS binaries are ad-hoc signed but not notarized, so an archive fetched through a browser carries a quarantine flag — clear it with xattr -dr com.apple.quarantine <directory>.
One fetched with curl never gets that flag.
Windows archives hold the same ten .exe files; unzip them anywhere on PATH.
In the examples below it's compared to the following tools on macOS