Command-line tool
replace
npm/replace
Checked 25 Oct 2026, 21:11 UTC · Still published on npm
Command line search and replace utility sed grep search replace
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:11 UTC
Install it
Windows
npm install -g replace
macOS
npm install -g replace
Linux
npm install -g replace
Replace the destination file with the one from the source directory
replace path\to\file_or_directory path\to\destination_directory
Add files to the destination directory instead of replacing existing files
replace path\to\file_or_directory path\to\destination_directory /a
Interactively copy multiple files, with a prompt before replacing or adding a destination file
replace path\to\file_or_directory path\to\destination_directory /p
Related command-line tools
- trasher
A small command-line utility to replace 'rm' and 'del' by a trash system - psgrep
Shortcut for the 'ps aux | grep' idiom - ast-grep
Code searching, linting, rewriting rust typescript search command-line static-analysis grep tree-sitter… - aki-mline
match line, regex text filter like a grep of linux command. - ripgrep
Search tool like grep and The Silver Searcher rust cli search ripgrep command-line grep regex command-line-tool… - grepwin
Regular expression search and replace tool for Windows. - rxrepl
A command line tool to search and replace text in text files using Perl compatible regular expressions (PCRE). - astrogrep
A Microsoft Windows grep utility.
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents