# 使用 Homebrew, Nix 安装 teip

查看 teip 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:teip
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install teip
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#teip
```

  证据: nixpkgs package indexes: pkgs/by-name/te/teip/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:teip
- **软件包管理器:** Homebrew
- **版本:** 2.3.3
- **来源摘要:** Masking tape to help commands "do one thing well"
- **主页:** <https://github.com/greymd/teip>
- **仓库:** <https://github.com/greymd/teip>
- **最后更新:** 2026-06-22T14:06:27-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- teip (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.3.3
## 项目历史与用法

teip is a Rust command-line text-processing helper whose project slogan is masking tape to help commands do one thing well. It lets users select ranges, lines, fields, regex matches, or CSV fields from standard input, run another command only on that selected part, and splice the result back into the original stream.

### 项目历史

The public repository dates to 2020 by its first GitHub release, v1.0.0, published on June 1, 2020. The README presents the tool as a Unix pipeline companion rather than a replacement for sed, awk, grep, cut, tr, or date: teip supplies the selection and replacement scaffolding so existing commands can focus on the selected text.

By v2.3.3 in April 2026, the project had grown into a packaged Rust CLI with Homebrew, prebuilt Linux deb/rpm artifacts, Windows installer artifacts, crates.io installation through Cargo, and optional Oniguruma regex support.

### 采用历史

teip's adoption is niche but clear: it appeals to shell users who like small composable commands but often need to transform only one part of a line, one CSV field, or the context around a match. The README documents Homebrew installation for macOS and Linux, Cargo installation, package artifacts, and Windows support, showing a package-friendly distribution model.

Its GitHub page lists hundreds of stars and multiple releases, but its real package-manager niche is ergonomic Unix plumbing: make a hard one-liner readable by keeping selection in teip and letting the target command remain ordinary.

### 使用方式

Official examples include converting timestamps in `/var/log/secure`, replacing text only on lines containing a pattern, uppercasing a selected CSV field, editing several TSV fields, and applying a command to lines around grep matches. It also supports aliases for grep, sed, and awk style selection and environment variables for choosing GNU variants such as ggrep or gsed.

Package users care because teip adds one reusable primitive to the shell toolbox instead of requiring bespoke awk or Perl snippets for every partial-line transformation.

### 为什么软件包爱好者会关心

teip is package-nerd significant as a modern Rust take on classic Unix composition. It is small, scriptable, and intentionally dependent on the user's existing command set, which makes it attractive to people who collect sharp terminal filters.

### 时间线

- 2020: v1.0.0 first release published.
- 2020-2026: Releases grew through v1.x and v2.x tags.
- 2026: v2.3.3 release fixed packaging/release automation details, including RPM digest compatibility.

### Related projects

- Related tools include sed, awk, grep, cut, tr, date, xargs-like shell composition tools, and Rust CLI packages distributed through Cargo and Homebrew.

### 来源

- <https://github.com/greymd/teip/blob/master/Cargo.toml>
- <https://github.com/greymd/teip/blob/master/README.md>
- <https://github.com/greymd/teip/releases/tag/v1.0.0>
- <https://github.com/greymd/teip/releases/tag/v2.3.3>
- source_facts.description


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - teip: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/teip/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/teip.yml](https://github.com/mxcl/pkgdb/blob/main/combined/teip.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
