macOS
brew install awklocal Homebrew formula metadata
安装
brew install awklocal Homebrew formula metadata
sudo pacman -S gawkArch Linux sync databases · gawk · 来源: geo.mirror.pkgbuild.com
sudo zypper install gawkopenSUSE Tumbleweed package metadata · gawk · 来源: download.opensuse.org
choco install awkChocolatey community package catalog · awk · 来源: community.chocolatey.org
概览
Text processing scripting language
历史
One True Awk is Brian Kernighan's maintained awk implementation, packaged by Homebrew as awk. It is the direct lineage most Unix people mean when they say awk as a small pattern-action language for scanning text, selecting fields, computing summaries, and printing reports.
Awk was developed at Bell Labs by Alfred Aho, Brian Kernighan, and Peter Weinberger. The original paper, referenced from the official awk.dev site, describes awk as a pattern scanning and processing language; the 1985 technical report covered the expanded language that became the basis for the 1988 book.
The official awk.dev page for The AWK Programming Language, Second Edition says the first edition was written by Aho, Kernighan, and Weinberger in 1988, and points to the maintained source at github.com/onetrueawk/awk. That repository is the modern home for the implementation commonly called One True Awk.
Awk spread through Unix culture because it sits between grep, sed, cut, and a full programming language. Its pattern-action model lets shell users write small data programs directly in pipelines without compiling anything or creating a larger script project.
The 2023 second edition of The AWK Programming Language and the continuing maintenance of the onetrueawk repository are part of awk's unusual afterlife: an old Unix language remains relevant because CSV-ish logs, columnar text, and quick data checks have not gone away.
Typical usage is inline and pipeline-oriented: match records, split fields, accumulate counters, transform columns, and print reports. The man page and historical papers emphasize scanning input lines for patterns and executing actions for matching lines.
There is no project-specific config or credential file. Awk programs are supplied on the command line or in script files, and behavior is controlled by variables, input files, and environment inherited from the shell.
For package nerds, awk is a tiny package with oversized cultural weight. It overlaps with POSIX awk, BWK awk, gawk, mawk, and system-provided /usr/bin/awk, so the packaging question is often which awk you are intentionally installing rather than whether awk exists at all.
Homebrew's awk formula is useful on macOS because it gives users a current One True Awk without replacing the system awk. That makes it attractive for people testing portability, newer awk fixes, or scripts that should stay close to the original language rather than GNU awk extensions.
安全态势
没有找到 awk 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
awk | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/onetrueawk/awk
安装元数据
| 软件包键 | brew:awk |
|---|---|
| 版本 | 20260426 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/awk |
| 主页 | https://www.cs.princeton.edu/~bwk/btl.mirror/ |
| 仓库 | https://github.com/onetrueawk/awk |
| 上游文档 | https://awk.dev/ |
| 许可证 | SMLNJ |
| 源码归档 | https://github.com/onetrueawk/awk/archive/refs/tags/20260426.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | awk |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gawk 5.4.0-1
GNU version of awk
https://www.gnu.org/software/gawk/
sudo pacman -S gawkgawk 5.4.0-1.1
Domain-specific language for text processing
https://www.gnu.org/software/gawk/
sudo zypper install gawkawk
choco install awk来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.