awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
chmln avatar

chmln/sd

0
View on GitHub↗
7,220 星标·160 分支·Rust·MIT·5 次浏览

Sd

sd 是一个命令行文本处理实用程序,旨在跨多个文件搜索和替换文本模式。它作为一个基于正则表达式的查找和替换工具,允许直接从终端进行原地文件编辑。

该项目支持正则表达式替换(包括使用捕获组进行复杂转换)和用于字面文本替换的固定字符串替换。它通过将文件内容作为单个块进行处理来匹配跨换行符的模式,从而专门处理多行文本替换。

该工具提供了批量文件内容更新能力,以及在提交到文件系统之前审查修改的缓冲更改预览。

Features

  • Regex Pattern Matching - Uses regular expressions and capture groups to identify and replace text sequences across files.
  • File Content Manipulators - Edits file contents in-place through string replacement and pattern matching.
  • Multi-Line Pattern Matching - Treats input as a single block to match patterns and newlines spanning multiple lines.
  • Terminal-Based Text Editing - Allows modifying text within files directly from the terminal using search and replace patterns.
  • Text Search and Replace - Searches for strings or regular expressions within files and replaces them with new text.
  • Multi-Line Replacements - Searches for and replaces blocks of text that span across multiple lines within a file.
  • Bulk File Content Updates - Enables updating specific strings or patterns across multiple files simultaneously.
  • Command Line Interfaces - Implements a terminal-driven interface for executing search and replace operations.
  • In-Place File Mutators - Modifies source files directly on disk after processing text replacements.
  • Cross-Line Buffer Processing - Handles multi-line text replacement by loading file contents into a single block to match across newlines.
  • Multi-Line Text Manipulation Tools - Provides a utility for finding and replacing text patterns that span across multiple lines.
  • Regular Expression Search and Replace - A command line tool for searching and replacing text patterns using regular expressions across multiple files.
  • Fixed String Substitutions - Performs literal find-and-replace by treating all characters as plain text.
  • Literal String Replacers - Performs literal text substitutions without the need for regular expression parsing.
  • Literal Match Modes - Supports fixed string replacement by treating all input characters as literal text.
  • Refactoring Search Tools - Facilitates complex text transformations and project-wide refactoring using regular expressions and capture groups.
  • Text Edit Previews - Provides a buffered preview of text changes to review modifications before committing them to files.
  • Text Processing and Search - Intuitive and fast alternative for find and replace operations.
  • sed - Listed in the “sed” section of the Awesome Alternatives In Rust awesome list.

Star 历史

chmln/sd 的 Star 历史图表chmln/sd 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

chmln/sd 是做什么的?

sd 是一个命令行文本处理实用程序,旨在跨多个文件搜索和替换文本模式。它作为一个基于正则表达式的查找和替换工具,允许直接从终端进行原地文件编辑。

chmln/sd 的主要功能有哪些?

chmln/sd 的主要功能包括:Regex Pattern Matching, File Content Manipulators, Multi-Line Pattern Matching, Terminal-Based Text Editing, Text Search and Replace, Multi-Line Replacements, Bulk File Content Updates, Command Line Interfaces。

chmln/sd 有哪些开源替代品?

chmln/sd 的开源替代品包括: pdfcpu/pdfcpu — pdfcpu is a Go PDF processing library and command-line interface designed for programmatically manipulating,… mawww/kakoune — Kakoune is a scriptable, modal text editor for the terminal that employs a client-server architecture. This model… guarinogabriel/mac-cli — Mac-CLI is a collection of terminal commands and utilities designed for automating system management, hardware… oils-for-unix/oils — Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and… microsoft/edit — This project is a terminal-based text editor and local file manipulation utility designed for modifying documents… tw93/miaoyan — MiaoYan is a local Markdown editor and personal knowledge management tool. It functions as a system for writing and…

Sd 的开源替代方案

相似的开源项目,按与 Sd 的功能重合度排序。
  • pdfcpu/pdfcpupdfcpu 的头像

    pdfcpu/pdfcpu

    8,675在 GitHub 上查看↗

    pdfcpu is a Go PDF processing library and command-line interface designed for programmatically manipulating, optimizing, and validating PDF files. It provides a toolkit for document content modification and structural management. The project distinguishes itself as an optimization tool and layout engine, capable of reducing file sizes and improving loading speeds by streamlining internal structures. It also functions as a security manager, providing password-based encryption, decryption, and digital signature verification. Its capability surface includes page management for merging, splittin

    Go
    在 GitHub 上查看↗8,675
  • mawww/kakounemawww 的头像

    mawww/kakoune

    10,938在 GitHub 上查看↗

    Kakoune is a scriptable, modal text editor for the terminal that employs a client-server architecture. This model allows multiple terminal windows to connect to a single editing session, providing a programmable environment for managing source code and text. The editor is distinguished by its selection-first logic, where a text region must be predefined before a command is applied. It leverages regular expressions to manage multiple cursors and perform bulk edits across complex text patterns, and it integrates deeply with the shell by piping selections through external programs and filters.

    C++
    在 GitHub 上查看↗10,938
  • guarinogabriel/mac-cliguarinogabriel 的头像

    guarinogabriel/Mac-CLI

    9,094在 GitHub 上查看↗

    Mac-CLI is a collection of terminal commands and utilities designed for automating system management, hardware monitoring, and software configuration on macOS. It serves as a developer utility and automation tool for manipulating files, managing version control, and auditing installed packages from the command line. The project provides hardware monitoring capabilities to track real-time battery health, CPU temperature, and fan speeds. It also includes system automation tools for managing power states, disk usage, and network settings through a unified interface. The utility covers several f

    Shell
    在 GitHub 上查看↗9,094
  • oils-for-unix/oilsoils-for-unix 的头像

    oils-for-unix/oils

    3,288在 GitHub 上查看↗

    Oils is a Unix shell interpreter and scripting language runtime that combines a modern shell language with POSIX and Bash compatibility. It functions as a structured data shell, integrating JSON and J8 formats to manage complex data without relying on string parsing. The system is distinguished by a C++ transpiled interpreter that converts a subset of Python source code into strongly typed C++ for high-performance execution. It features a garbage-collected typed runtime that supports prototype-based polymorphism, lexical closures, and reference-based variable mutation. To decouple shell logic

    Python
    在 GitHub 上查看↗3,288
查看 Sd 的所有 30 个替代方案→