0

Find and replace string inside specific files

 $ grep -ril '$SEARCH_PATTERN' src | sed -i 's/$FIND_PATTERN/$REPLACE_PATTERN/g'

— by gatero on Aug. 17, 2018, 4:18 p.m.

Explanation

This command search for files that contain and an specific string and then find a pattern on those files and replace it