notes/grep_sed.md

2 lines
119 B
Markdown
Raw Normal View History

2020-01-12 21:28:28 -05:00
find and replace a word in an entire directory
2018-09-17 09:40:49 -04:00
`grep -rl target_word ./ | xargs sed -i 's/target_word/replace_word/g'`