All pastes #382518 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-05 18:32 UTC
rendered paste body
#!/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 $*
}