notes/grep_sed.md

2 lines
118 B
Markdown
Raw Normal View History

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