Advertisement

06.30.2008 at 02:10PM PDT, ID: 23528393
[x]
Attachment Details

Using grep

Asked by rudy201 in Unix Operating Systems, Linux

I used
grep -R throw .
to find all files in current directory and sub-directories that have "throw" in them.
How would I restrict my search to only search *.cpp files?

Start Free Trial
[+][-]06.30.2008 at 02:45PM PDT, ID: 21903278

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.30.2008 at 03:51PM PDT, ID: 21903676

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Unix Operating Systems, Linux
Sign Up Now!
Solution Provided By: Tintin
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628