gnu-sed

Install command:
brew install gnu-sed

Also known as: gsed

GNU implementation of the famous stream editor

https://www.gnu.org/software/sed/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/gnu-sed.json

Formula code: gnu-sed.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 4.10

Binaries: gsed

GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:

     PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"

GitHub Packages downloads:

Last 30 days152,759
Downloads8,918,190
Analytics install events (30 days)6,366
Downloads / install events (30 days)24.0×

Source: GitHub Packages, fetched 2026-11-30T00:57:41Z. Analytics dates: 2026-10-31 to 2026-11-30. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs6,36117,976116,508
Installs (--HEAD)515101
Installs on Request5,25415,61093,348
Installs on Request (--HEAD)51599
Build Errors1