Snippet for filtering files and then searching in this files in a console

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

Searches all html files under the current directory for searchterm.

Copy this code and paste it in your HTML
  1. find ./ -type f -name "*.html" | xargs grep -r 'searchterm'

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.