Linux Recursive GREP search excluding directories example

This command will search for text inside files in a directory while excluding some directories you do not want to search in.

This is helpful when a search is going slow due to a directory that might contain thousands of files that you are not interested in searching through, such as an images or cache directory.

grep -r –exclude-dir=product_images –exclude-dir=cache –exclude-dir=.svn search term *

 

 

 

7 NOS RCA 2N3442 BI-POLAR NPN POWER TO-3 TRANSISTORS
$9.99 7 NOS RCA 2N3442 BI-POLAR NPN POWER TO-3 TRANSISTORS picture
Transistor : 2N4957 : PNP : 4-Pin : TO-72
$7.5 Transistor : 2N4957 : PNP : 4-Pin : TO-72 picture
Transistor:Power: 2SA1943-O / A1943 & 2SC5200-O / C5200 : 1 pair ( 1 each )
$5.0 Transistor:Power: 2SA1943-O / A1943 & 2SC5200-O / C5200 : 1 pair ( 1 each ) picture
10 NOS TI 2N930 BIPOLAR NPN SILICON AMPLIFIER TRANSISTORS
$9.99 10 NOS TI 2N930 BIPOLAR NPN SILICON AMPLIFIER TRANSISTORS picture
C32840-- PNP SILICON---PH 1G---GENERAL PURPOSE TRANSISTOR--LOT of 5
$4.0  C32840-- PNP SILICON---PH 1G---GENERAL PURPOSE TRANSISTOR--LOT of 5 picture

Powered by WordPress. Designed by WooThemes