Vamsi Pavan’s Place

When curiousity outbursts …..

Typical Unix/Linux recursive search commands

June 9th, 2008 · No Comments · Algorithms, Linux

The Typical one is - to find the files with some pattern recursively in a given directory.
$ find path/to/dir -name “*.html”
You can replace the “*.html” to your own filename pattern.
Another one is, in addition to above I need the text lines inside those files starting with letter t.

$ find path/to/dir -name “*.html” -exec grep “^t” […]

[Read more →]

Tags:···