From: Oleg Broytman Date: Fri, 17 Jan 2014 22:22:38 +0000 (+0400) Subject: Minor refactoring X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=57d79630adf8b37572bd55cc9a4bd65cd65c98a1 Minor refactoring --- diff --git a/bin/find_home_grep.sh b/bin/find_home_grep.sh index dc9e108..b15636c 100755 --- a/bin/find_home_grep.sh +++ b/bin/find_home_grep.sh @@ -1,4 +1,4 @@ #! /bin/sh -cd "$HOME" && -exec cgmem_nice 100 find . \( -type d \( -name CVS -o -name .svn -o -name .hg -o -name .git -o -path ./.cache/chromium/\* -o -path ./.cache/mozilla/\* -o -path ./Internet/WWW/htdocs/doc/\* -o -path ./archive/STORE/\* -o -path ./current/Bregis/nobackup/\* -o -path ./media/\* -o -path ./mnt/\*\* \) -prune \) -o -type f -exec grep -I "$@" '{}' \+ 2>/dev/null +cd "$HOME" && exec cgmem_nice 100 \ +find . \( -type d \( -name CVS -o -name .svn -o -name .git -o -name .hg -o -path ./.cache/chromium/\* -o -path ./.cache/mozilla/\* -o -path ./Internet/WWW/htdocs/doc/\* -o -path ./archive/STORE/\* -o -path ./current/Bregis/nobackup/\* -o -path ./media/\* -o -path ./mnt/\*\* \) -prune \) -o -type f -exec grep -I "$@" '{}' \+ 2>/dev/null