Posted By

collin on 11/20/06


Tagged

Bash replace grep find


Versions (?)

Edit all files containing a given pattern


 / Published in: Bash
 

URL: http://oakwinter.com/code/

Using this command makes it easy to do a project-wide search-and-replace

  1. $EDITOR `find . -exec grep -q $PATTERN {} ';' -print`

Report this snippet  

You need to login to post a comment.