Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

NicoNex/red

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language Go Report Card License

Warning

This repository was moved to Jet on 28-07-2023 and thus is unmantained.
The name was changed so that it no longer collides with many other Unix tools.
For the mantained version please refer to: https://github.com/NicoNex/jet

red

Recursive Editor

Red is an intuitive and fast find & replace cli. Red replaces all matches of a specified regex with the provided replacement text. It can be run over single files or entire directories specified in the command line argument. When red encounters a directory it recursively finds and replaces text in all the files in the directory tree.

Install it with go install github.com/NicoNex/red@latest. Run red -h for more options.

Usage

red [options] "pattern" "replacement" [input file/dir]