gsar
« Back to VersTracker
Description:
General Search And Replace on files
Type: Formula  |  Latest Version: 1.51@0  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: search replace text-processing cli utility
Install: brew install gsar
About:
Gsar is a command-line utility designed for performing global search and replace operations across multiple files. It efficiently handles text substitutions in various file types, making it a valuable tool for batch processing and refactoring tasks. Its primary value lies in its speed and simplicity for modifying large codebases or data sets.
Key Features:
  • Recursive directory searching
  • Case-insensitive search options
  • In-place file modification
  • Regular expression support
Use Cases:
  • Batch renaming of variables across a source code repository
  • Sanitizing log files by removing sensitive data
Alternatives:
  • sed – Standard Unix tool, often pre-installed, but with less intuitive multi-file handling than Gsar.
  • ripgrep (rg) – Much faster search tool, but focused on searching rather than in-place replacement.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 3:44pm 1.51 0 VERSION_BUMP f2a31b1c
Sep 13, 2024 12:47pm 1.51 0 VERSION_BUMP 71454c9e