macOS
brew install topfewlocal Homebrew formula metadata
sudo port install topfewMacPorts ports tree · textproc/topfew/Portfile · 来源: api.github.com
安装
brew install topfewlocal Homebrew formula metadata
sudo port install topfewMacPorts ports tree · textproc/topfew/Portfile · 来源: api.github.com
nix profile install nixpkgs#topfewnixpkgs package indexes · pkgs/by-name/to/topfew/package.nix · 来源: api.github.com
概览
Finds the field values which appear most often in a stream of records
历史
topfew is a Go command-line utility for finding the most frequent records or field combinations in text streams and files. It packages a familiar Unix analysis pattern into a faster, purpose-built binary.
Tim Bray created Topfew as a utility for counting common values in streams of records, with the README crediting his version 0.1 and later work toward 1.0 to ideas from Dirkjan Ochtman and Simon Fell. The project reached a documented 1.0 release in April 2024, and the current README describes release 2.0.
The design is explicitly close to traditional shell composition: the README states that its result can be duplicated with awk, grep, sed, sort, uniq, and head, but argues that Topfew is for cases where performance matters on large inputs. The examples are package-nerd friendly: Apache logs, quoted fields, grep/vgrep filters, sed-style cleanups, and multi-threaded file processing.
topfew is niche but packaged beyond its source repository. The input package metadata lists Homebrew, MacPorts, and Nix package names, matching its role as a small single-purpose CLI that is useful enough to show up in Unix package collections.
The basic form is `topfew --fields 1 access_log`, which finds the most common first field in an Apache log. More advanced use combines field selection, regex separators, grep and inverse-grep filters, sed-style transformations, quoted-field parsing, output limits, and worker counts.
topfew matters to package nerds because it is a performance-oriented replacement for a shell pipeline they already know. It is the sort of small binary people install from Homebrew or Nix when a log-analysis one-liner becomes too slow or too hard to repeat.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
topfew | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/timbray/topfew
安装元数据
| 软件包键 | brew:topfew |
|---|---|
| 版本 | 2.0.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/topfew |
| 主页 | https://github.com/timbray/topfew |
| 仓库 | https://github.com/timbray/topfew |
| 上游文档 | https://github.com/timbray/topfew#readme |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://github.com/timbray/topfew/archive/refs/tags/v2.0.0.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | topfew |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
topfew
nix profile install nixpkgs#topfewtopfew
sudo port install topfew来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.