From 0e858b05e729ac1c6ce983ab0a40cb5670b82047 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 17 Sep 2018 09:40:49 -0400 Subject: [PATCH] find and replace a bun cof an instance --- grep_sed.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 grep_sed.md diff --git a/grep_sed.md b/grep_sed.md new file mode 100644 index 0000000..19c9e38 --- /dev/null +++ b/grep_sed.md @@ -0,0 +1,2 @@ +find and replace a word in an entire directory +`grep -rl target_word ./ | xargs sed -i 's/target_word/replace_word/g'` \ No newline at end of file