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 *

 

 

 


Used & Tested LENZE ESMD552L4TXA Frequency Inverter picture

Used & Tested LENZE ESMD552L4TXA Frequency Inverter

$356.13



6ES7954-8LE03-0AA0 SIEMENS picture

6ES7954-8LE03-0AA0 SIEMENS

$199.00



MICRO DNC2 picture

MICRO DNC2

$189.00



Zebra MC330K Premium, Andriod 8.1, 4gb Ram, 16 Gb , 2D Imager, 38 Keys MSRP$1650 picture

Zebra MC330K Premium, Andriod 8.1, 4gb Ram, 16 Gb , 2D Imager, 38 Keys MSRP$1650

$375.00



Honeywell CK65-L0N-BMC210F 4GB/32GB Memory Android 8 Handheld Computer... picture

Honeywell CK65-L0N-BMC210F 4GB/32GB Memory Android 8 Handheld Computer...

$475.00



Nitinol shape memory alloy wire 1 mm (0.04

Nitinol shape memory alloy wire 1 mm (0.04"), 40 ºC Af (104 ºF), by the foot

$2.90



🔥🔥 Pack of 10 x Genuine SanDisk 2GB SD CARD CLASS 2 SDHC Flash Memory Card 🔥 picture

🔥🔥 Pack of 10 x Genuine SanDisk 2GB SD CARD CLASS 2 SDHC Flash Memory Card 🔥

$20.00



SURPLUS ALLEN BRADLEY 1766-MM1 MICROLOGIX 1400 MEMORY MODULE picture

SURPLUS ALLEN BRADLEY 1766-MM1 MICROLOGIX 1400 MEMORY MODULE

$115.00



New In Box ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card picture

New In Box ABB ACS880-MU-ZCU-12/14 ZMU-02 Inverter Memory Card

$148.50



FAGOR USED MEMORY CARD MEM-KEY-CARD 55/A 512KB for circuit board CPU 8055/A,DHL picture

FAGOR USED MEMORY CARD MEM-KEY-CARD 55/A 512KB for circuit board CPU 8055/A,DHL

$258.80



Powered by WordPress. Designed by WooThemes