All pastes #267336 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-04 20:07 UTC
rendered paste body
find ()
{
    if (( ! $# )); then
        return;
    fi;
    if [ -d $1 ]; then
        DIR="$1";
        shift;
    else
        DIR="$PWD";
    fi;
    if [ "$#" == "1" ]; then
        `which find` -L "$PWD" -not -path '*.svn*' -iname "$1";
        return 0;
    fi;
    COMMAND="`which find` -L \"$DIR\" -not -path '*.svn*' $@";
    `which find` -L "$DIR" -not -path '*.svn*' "$@"
}