macOS
brew install yanklocal Homebrew formula metadata
sudo port install yankMacPorts ports tree · sysutils/yank/Portfile · 来源: api.github.com
安装
brew install yanklocal Homebrew formula metadata
sudo port install yankMacPorts ports tree · sysutils/yank/Portfile · 来源: api.github.com
sudo apk add yankAlpine Linux edge package indexes · yank · 来源: dl-cdn.alpinelinux.org
sudo dnf install yankFedora Rawhide package metadata · yank · 来源: dl.fedoraproject.org
nix profile install nixpkgs#yanknixpkgs package indexes · pkgs/by-name/ya/yank/package.nix · 来源: api.github.com
sudo pacman -S yankArch Linux sync databases · yank · 来源: geo.mirror.pkgbuild.com
sudo zypper install yankopenSUSE Tumbleweed package metadata · yank · 来源: download.opensuse.org
winget install --id nasiridrishi.Yank -eWindows Package Manager source index · nasiridrishi.Yank · 来源: cdn.winget.microsoft.com
概览
Copy terminal output to clipboard
历史
yank is a small C terminal utility for selecting fields from command output and copying the selection to a clipboard command. It reads from stdin, presents a keyboard-driven selection interface, and writes the chosen field to a yank command such as xsel or pbcopy.
The GitHub repository was created on 2015-08-24. The README frames the project around a terminal-user frustration: copying output with the mouse feels like a cache miss, while terminal multiplexer copy modes are not always available or desired.
The design stayed terminal-agnostic. yank recognizes fields either by regular expression with `-g` or by delimiter with `-d`, supports line selection with `-l`, and lets users replace the default clipboard command by passing a command after `--`.
yank has the kind of packaging spread typical of beloved Unix conveniences. The README documents installation through Arch Linux, Debian, Fedora, Nix/NixOS, openSUSE, Homebrew, MacPorts, FreeBSD, OpenBSD, and source builds. The supplied package data also shows broad distribution coverage.
Some Linux distributions install the binary as `yank-cli` because of a naming conflict, an adoption detail that matters to users searching for the command after installing the package.
Common examples include `env | yank -d =` to select an environment variable key or value, `yank -d ", <file.csv` for CSV fields, `make 2>&1 | yank -l` for whole-line selection, and `ps ux | yank -g [0-9]+ | xargs kill` when stdout is not a terminal.
On X11 the default command is xsel. macOS users can build with `YANKCMD=pbcopy`, and the README also mentions shcopy for copying over SSH or from headless environments.
yank is package-nerd significant because it solves a tiny but common shell workflow problem in the Unix way: compose stdin, regex/delimiter selection, stdout fallback, and pluggable clipboard commands.
It also demonstrates why package names and binary names matter: the same tool may be installed as `yank` or `yank-cli` depending on distribution conflicts, which is exactly the sort of detail package catalogs help users untangle.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
yank | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:yank |
|---|---|
| 版本 | 1.3.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/yank |
| 主页 | https://github.com/mptre/yank |
| 仓库 | https://github.com/mptre/yank |
| 上游文档 | https://github.com/mptre/yank#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/mptre/yank/archive/refs/tags/v1.3.0.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | yank |
| 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 软件包链接分开显示。
yank 1.3.0-1
interactively select and yank terminal output to stdout or xsel
sudo apt install yankyank
nix profile install nixpkgs#yankyank 1.3.0-1
interactively select and yank terminal output to stdout or xsel
sudo apt install yankyank 1.3.0-r0
Yank terminal output to clipboard
sudo apk add yankyank-doc 1.3.0-r0
Yank terminal output to clipboard (documentation)
sudo apk add yank-docyank 1.3.0-9.fc44
Tool for selecting and copying text from stdin without a mouse
sudo dnf install yankyank 1.3.0-2
Copy terminal output to clipboard
sudo pacman -S yankyank 1.3.0-1.10
Tool for selecting and copying text from stdin without a mouse
sudo zypper install yankyank
sudo port install yanknasiridrishi.Yank
winget install --id nasiridrishi.Yank -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.