Question

I am using Ubuntu 12.04 LTS. I have many files named "urls.py" in many folders. I want to search a particular string named "unit/" in these files. Can anybody tell me the command to search the same?

Was it helpful?

Solution

grep -in 'unit' $(find -name "urls.py") Works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top