Editing files from a find result


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

find command just returns a list of HTML files that have 'search_str' in it, vim takes a list of files.


Copy this code and paste it in your HTML
  1. vim `find . -name \*.html -exec grep -l search_str {} \;`

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.