Recursively replace a word in multiple files in multiple directories

12:13 AM by Christian Koch

Filed under Commands

Last modified Thursday October 10th, 2013

grep -ilr ‘search-word * | xargs -i@ sed -i ‘s/search-word/new-word/g’ @

 

Related Articles

                                                          Leave a Comment