Posts Tagged With: exclude

Optimized Grep Searching

Tagged with: , , , , , , ,

Grep that searches recursively, ignores binary files, and doesn’t look inside Subversion hidden folders.


grep -Ir --exclude="*\.svn*" "pattern" *
No Comments »

Exclude Removable Partitions from a ‘find’ Search

Tagged with: , , , , ,

Search files with ‘.rpm’ extension ignoring removable partitions as cdrom, pen-drive, etc.


find / -xdev -name \*.rpm
No Comments »