Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 89cfd9be3a
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (21 sloc) 0.379 kb
#!/bin/bash
unset GREP_OPTIONS
pattern=$1
shift
if [ $# == 1 ]; then
files="$@"
else
files=.
fi
grep -ERHn \
--exclude=".*.swp" \
--exclude="*.log" \
--exclude=".svn/*" \
--exclude="*.tmp" \
--exclude="*.svn-base" \
--exclude=".git/*" \
--color=always \
--binary-files=without-match \
"$pattern" \
$files \
2>/dev/null
Jump to Line
Something went wrong with that request. Please try again.