Hasty Briefsbeta

Intuitive find and replace CLI (sed alternative)

8 days ago
  • #text-processing
  • #regex
  • #CLI
  • sd is an intuitive find & replace CLI tool.
  • Uses regex syntax familiar from JavaScript and Python, avoiding quirks of sed or awk.
  • Features string-literal mode for non-regex find & replace, eliminating the need for escaping special characters.
  • Expressions are split for readability and ease of writing.
  • Smart defaults tailored for typical daily use.
  • Simpler syntax compared to sed for common tasks like replacing all occurrences or handling newlines.
  • Efficient in-place file modifications without remembering platform-specific flags.
  • Demonstrated significant performance improvements over sed in benchmarks.
  • Installable via cargo or various package managers.
  • Supports basic regex, capture groups (indexed and named), and file operations.
  • Includes features for previewing changes and project-wide find & replace operations.
  • Respects Unix conventions for flag handling and escaping special characters.