Skip to content

Instantly share code, notes, and snippets.

@abeger
Last active August 29, 2015 14:03
Show Gist options
  • Save abeger/0913ca7cd3d73cf22c3e to your computer and use it in GitHub Desktop.
Save abeger/0913ca7cd3d73cf22c3e to your computer and use it in GitHub Desktop.
Find all files ending in php, tpl, html, or shtml that contain the word "foo" and throw them all into a vim instance
vim $(find . -regex '.*\.\(php\|tpl\|html\|shtml\)' -print0 | xargs -0 grep -l "foo")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment