Edit all files containing a given pattern


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $EDITOR `find . -exec grep -q $PATTERN {} ';' -print`

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.