anebg 2 geek life, brainstorm, computing!

7Jul/090

How to Search Inside files from Ubuntu (Unix) Terminal

'grep' is what your looking for.

Here's the command:

grep -Rs search query /some/directory/*

Also, if the terminal bugs you, you can enclose the search query using double quotes ( and possibly also single quotes)

Good luck!