Day-to-day Problems & Answers
Day-to-day Problems & Answers
Linux grep & Replace Strings
find ./ -type f -exec sed -i 's/FIND_WORDS/REPLACE_WORDS/g' {} \;
grep -rl "SEARCH_WORDS" | xargs sed -i 's/SEARCH_WORDS/REPLACE_WORDS/g'
Newer Post
Older Post
Home