🍺 BREW Explorer

← all formulae

gawk

brew install gawk v5.4.0 GPL-3.0-or-later

GNU implementation of awk, a text-processing language for extracting and transforming column/record data.

Why you might care

awk is a standard POSIX tool for rapid one-liners and scripts that filter, split, and aggregate text fields; gawk extends it with built-in math (via gmp/mpfr), coprocesses, and dynamic regex. Reach for it over sed when you need structured parsing or stateful transforms.

Categories

Alternatives

mawk nawk sed perl
2.7k
30-day installs · #841
10.1k
90-day · #811
45.3k
365-day · #726

Runtime dependencies

Links

Caveats

GNU "awk" has been installed as "gawk".
If you need to use it as "awk", you can add a "gnubin" directory
to your PATH from your ~/.bashrc and/or ~/.zshrc like:

    PATH="$HOMEBREW_PREFIX/opt/gawk/libexec/gnubin:$PATH"

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "mawk",
    "nawk",
    "sed",
    "perl"
  ],
  "build_dependencies": [],
  "categories": [
    "text-processor",
    "interpreter"
  ],
  "caveats": "GNU \"awk\" has been installed as \"gawk\".\nIf you need to use it as \"awk\", you can add a \"gnubin\" directory\nto your PATH from your ~/.bashrc and/or ~/.zshrc like:\n\n    PATH=\"$HOMEBREW_PREFIX/opt/gawk/libexec/gnubin:$PATH\"\n",
  "conflicts_with": [],
  "dependencies": [
    "gmp",
    "mpfr",
    "readline",
    "gettext"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "GNU awk utility",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:54+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "gawk",
  "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/gawk/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "Gawk - GNU Project - Free Software Foundation (FSF)",
  "installs_30d": 2677,
  "installs_365d": 45278,
  "installs_90d": 10052,
  "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:47:26+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "gawk",
  "oldnames": [],
  "one_liner": "GNU implementation of awk, a text-processing language for extracting and transforming column/record data.",
  "optional_dependencies": [],
  "rank_30d": 841,
  "rank_365d": 726,
  "rank_90d": 811,
  "raw_hash": "4d5e6dd9fcbd3a20",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/gawk.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "5.4.0",
  "versioned_formulae": [],
  "why_use_this": "awk is a standard POSIX tool for rapid one-liners and scripts that filter, split, and aggregate text fields; gawk extends it with built-in math (via gmp/mpfr), coprocesses, and dynamic regex. Reach for it over sed when you need structured parsing or stateful transforms."
}