macOS
brew install sadlocal Homebrew formula metadata
sudo port install sadMacPorts ports tree · textproc/sad/Portfile · 来源: api.github.com
安装
brew install sadlocal Homebrew formula metadata
sudo port install sadMacPorts ports tree · textproc/sad/Portfile · 来源: api.github.com
sudo apk add sadAlpine Linux edge package indexes · sad · 来源: dl-cdn.alpinelinux.org
sudo dnf install sadFedora Rawhide package metadata · sad · 来源: dl.fedoraproject.org
nix profile install nixpkgs#sadnixpkgs package indexes · pkgs/by-name/sa/sad/package.nix · 来源: api.github.com
sudo pacman -S sadArch Linux sync databases · sad · 来源: geo.mirror.pkgbuild.com
sudo zypper install sadopenSUSE Tumbleweed package metadata · sad · 来源: download.opensuse.org
scoop install main/sadScoop official bucket manifest trees · bucket/sad.json · 来源: api.github.com
概览
CLI search and replace | Space Age seD
历史
sad is a Rust command-line search-and-replace tool designed for batch file edits. It previews proposed changes as a diff and can use fzf to let users select which changes to apply.
sad, expanded by its author as “Space Age seD,” was created as a batch file editing tool inspired by sd. It combines regular-expression replacement with a reviewable diff so users can inspect or selectively apply changes before files are modified.
The official README documents installation through Homebrew, Scoop, Arch Linux, downloadable Debian/Ubuntu packages, and Cargo. The supplied package facts additionally list apk, Fedora, MacPorts, Nix, and openSUSE packaging, indicating broad adoption among command-line package ecosystems.
Users pipe a list of file paths, commonly from find or fd, into `sad <pattern> <replacement>`. By default it previews changes; `--commit` applies them directly. Optional fzf integration supports selective application, while a Git-compatible pager can colorize the diff.
sad belongs to a modern family of Rust command-line tools that reinterpret classic Unix text-processing workflows. Package enthusiasts value its interactive, diff-first approach and its optional composition with fzf, delta, fd, and other focused terminal utilities.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
sad | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:sad |
|---|---|
| 版本 | 0.4.32 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/sad |
| 主页 | https://github.com/ms-jpq/sad |
| 仓库 | https://github.com/ms-jpq/sad |
| 许可证 | MIT |
| 源码归档 | https://github.com/ms-jpq/sad/archive/refs/tags/v0.4.32.tar.gz |
| 最后更新 | 2026-09-13T13:43:57Z |
| Pulse | updated |
| 构建依赖 | rust |
| 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 | sad |
| 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 软件包链接分开显示。
sad
nix profile install nixpkgs#sadsad 0.4.23-r0
CLI search and replace - a batch file edit tool
sudo apk add sadsad 0.4.32-5.fc45
CLI search and replace tool
sudo dnf install sadsad 0.4.32-3
Space Age seD
sudo pacman -S sadsad 0.4.32-1.5
CLI search and replace batch file editing tool
sudo zypper install sadsad
sudo port install sadmain/sad
scoop install main/sad来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.