Miscellany
public text v1 · immutable#!/bin/sh -x
function xfind() {
args=$(echo $*)
find_args="${args%%--*}"
xargs_cmd="${args##*--}"
eval $(echo "find $(echo "$find_args") -print0 | xargs -0 -P0 $(echo "$xargs_cmd")")
}
function svngrep() {
xfind -iwholename "'*/.svn'" -prune -o -iwholename "'*/.tmp_versions'" -prune -o ! -type d -- grep -I $*
}