From 3e9bb827842b5cfa2ad8cf4795746c31ecbfbe59 Mon Sep 17 00:00:00 2001 From: Roben Kleene Date: Mon, 25 Dec 2023 05:47:50 -0500 Subject: [PATCH] Update README (#34) * Update README * Update README * Update README * Update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd75b5a..d7bd1af 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Rep Grep -`rep` is a command-line utility that takes [`grep`](https://en.wikipedia.org/wiki/Grep)-formatted lines via standard input, and performs a find-and-replace on them. By default, it outputs a [`diff`](https://en.wikipedia.org/wiki/Diff)-preview of the changes to standard output, and it can write the changes to the files in place with a flag. +`rep` is a command-line utility that takes [`grep`](https://en.wikipedia.org/wiki/Grep)-formatted lines via standard input, and performs a find-and-replace on them. By default, it outputs a [`diff`](https://en.wikipedia.org/wiki/Diff)-preview of the changes to standard output, and with a flag it can write the changes to the files in place. [![Find & replace with `rep`](rep.gif)](https://www.youtube.com/embed/QIOKKTnC9-I) @@ -12,7 +12,7 @@ Output a diff to standard output replacing `foo` with `bar`: grep -n foo *` | rep foo bar ``` -Write the changes to the files in place: +Add the `-w` flag to write the changes to the files in place: ``` grep -n foo *` | rep foo bar -w @@ -22,7 +22,7 @@ The `-n` (`--line-number`) option is required so that `grep` outputs the line nu ## Help -`grep --help` (or `grep -h`) will list help for all the command-line flags. +`rep -h` (or `rep --help`) will list help for all the command-line flags. ## Acknowledgements