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 *

 

 

 


MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$305.00



Altair2X Co Instrument CO Gas Detector picture

Altair2X Co Instrument CO Gas Detector

$399.99



MSA Altair 5X Multi-Gas Detector 10165446 picture

MSA Altair 5X Multi-Gas Detector 10165446

$3500.00



MSA ALTAIR 4XR 10178557 Detector Multi Gas Meter (LEL, O2, CO, H2S) picture

MSA ALTAIR 4XR 10178557 Detector Multi Gas Meter (LEL, O2, CO, H2S)

$750.00



MSA Altair 4X Gas Detector - Charcoal ***Used Excellent Condition *** picture

MSA Altair 4X Gas Detector - Charcoal ***Used Excellent Condition ***

$250.00



MSA Altair 4X Gas Detector Monitor With Charger Turns On ** picture

MSA Altair 4X Gas Detector Monitor With Charger Turns On **

$250.00



NEW MSA Altair 4XR Multigas Detector Open Box picture

NEW MSA Altair 4XR Multigas Detector Open Box

$599.99



MSA Altair 5X Multi Gas Detector - COMB, O2, CO, H2S,CO2。Monochrome screen picture

MSA Altair 5X Multi Gas Detector - COMB, O2, CO, H2S,CO2。Monochrome screen

$500.00



MSA ALTAIR O2 SINGLE GAS DETECTOR 10071364 picture

MSA ALTAIR O2 SINGLE GAS DETECTOR 10071364

$217.55



MSA ALTAIR H2S SINGLE GAS DETECTOR 10071361 picture

MSA ALTAIR H2S SINGLE GAS DETECTOR 10071361

$217.55



Powered by WordPress. Designed by WooThemes