gnu-sed
brew install gnu-sed
v4.10
GPL-3.0-or-later
GNU sed 4.10: stream editor for filtering and transforming text, with extended regex and in-place editing.
Why you might care
macOS ships with BSD sed, which lacks GNU extensions like `-i` with backup, `\L`/`\U` case conversion, and more regex features. Use gnu-sed if your scripts require GNU-specific behavior or you want cross-platform sed compatibility. It's a drop-in replacement installable as `gsed` to avoid shadowing the system binary.
11.0k
30-day installs · #343
37.3k
90-day · #330
130.9k
365-day · #362
Links
- https://www.gnu.org/software/sed/
- Brew formula source: Formula/g/gnu-sed.rb
Caveats
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"
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [
"gsed"
],
"alternatives": [
"sed",
"perl",
"awk"
],
"build_dependencies": [],
"categories": [
"text-processor"
],
"caveats": "GNU \"sed\" has been installed as \"gsed\".\nIf you need to use it as \"sed\", you can add a \"gnubin\" directory\nto your PATH from your bashrc like:\n\n PATH=\"$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH\"\n",
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "GNU implementation of the famous stream editor",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:13+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gnu-sed",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://www.gnu.org/software/sed/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "GNU sed - GNU Project - Free Software Foundation",
"installs_30d": 10961,
"installs_365d": 130858,
"installs_90d": 37312,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-3.0-or-later",
"llm_generated_at": "2026-06-20T23:44:17+00:00",
"llm_model": "claude-haiku-4-5",
"name": "gnu-sed",
"oldnames": [],
"one_liner": "GNU sed 4.10: stream editor for filtering and transforming text, with extended regex and in-place editing.",
"optional_dependencies": [],
"rank_30d": 343,
"rank_365d": 362,
"rank_90d": 330,
"raw_hash": "ad8197f96ea56d9b",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gnu-sed.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": null,
"version_stable": "4.10",
"versioned_formulae": [],
"why_use_this": "macOS ships with BSD sed, which lacks GNU extensions like `-i` with backup, `\\L`/`\\U` case conversion, and more regex features. Use gnu-sed if your scripts require GNU-specific behavior or you want cross-platform sed compatibility. It\u0027s a drop-in replacement installable as `gsed` to avoid shadowing the system binary."
}