Linux: Quickly search for text within multiple file types

It's really easy to quickly search certain files in a large directory for some text.

find -name "*.html" -or -name "*.json" -or -name "*.js" | xargs grep -i "full_uri"

The "find" command searches out those specific files.

The "xargs grep" will search the files (-i makes it case insensitive).


Now its much easier to find your stuff, even with a million lolcats swarming the place.

Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog