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 *

 

 

 


BUNN Comercial  27850.0209 SH Server, 1.5G/5.7L, INF Series picture

BUNN Comercial 27850.0209 SH Server, 1.5G/5.7L, INF Series

$169.00



Bunn Coffee Server 27850 Used but in New Condition picture

Bunn Coffee Server 27850 Used but in New Condition

$249.00



New In Box INTEL S1200BTL Server Motherboard picture

New In Box INTEL S1200BTL Server Motherboard

$182.00



MOXA NPort 5610-16 - 16 Ports RS-232 Rack Mount Serial Device Server picture

MOXA NPort 5610-16 - 16 Ports RS-232 Rack Mount Serial Device Server

$698.00



Guest Check Books 6 Pack, Guest Checks for Servers, Server Note Pads, Waitres... picture

Guest Check Books 6 Pack, Guest Checks for Servers, Server Note Pads, Waitres...

$6.94



Server Book for Waitress Book Organizer Leather Waiter Book with Zipper Pocket picture

Server Book for Waitress Book Organizer Leather Waiter Book with Zipper Pocket

$12.50



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$10.79



Server Book with Zipper and Magnetic Pocket, Cute Waitress Book Server Bookle... picture

Server Book with Zipper and Magnetic Pocket, Cute Waitress Book Server Bookle...

$22.72



VPS Server Linux 2GB RAM 50 GB Storage Location US - 12 Months picture

VPS Server Linux 2GB RAM 50 GB Storage Location US - 12 Months

$200.00



New In Box MOXA NPort5210 RS232 Serial Device Server picture

New In Box MOXA NPort5210 RS232 Serial Device Server

$247.05



Powered by WordPress. Designed by WooThemes