Speeding up grep Searches by Excluding Directories
The Lazy Sysadmin's grep
I work on a project on which I regularly want to grep the directory tree for a particular word but without including the cvs/ and doc/ directories. Happily, grep has an exclude-dir option to do just this:
grep -R --exclude-dir=cvs --exclude-dir=doc foo *It searches recursively for foo without looking in cvs/ or doc/, so the output isn't clogged up with unwanted results. Great.
The problem with this is that (in true sys admin style) I'm lazy and don't want to do all that typing. One solution to this is to set up an alias...
Read the rest of this excellent grep tip at Serverwatch.com
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: Linux 3.11, Kubuntu Goes Commercial
- 5Linux Top 3: RHEL 6.5, Debian 7.2 and EOL for Linux 3.0.x