, bash script, vim , !
#!/bin/bash
context="$3"
export GREP_COLORS="sl=32:mc=00;33:ms=05;40;31:ln="
if [[ "$context" == "" ]]; then context=5; fi
grep --color=always -n -a -R -i -C"$context" --exclude='*.mp*'\
--exclude='*.avi'\
--exclude='*.flv'\
--exclude='*.png'\
--exclude='*.gif'\
--exclude='*.jpg'\
--exclude='*.wav'\
--exclude='*.rar'\
--exclude='*.zip'\
--exclude='*.gz'\
--exclude='*.sql' "$2" "$1" | less -R
codesearch chmod 700 770
, ,
script
./codesearch '/full/path' 'string to search'
5
./codesearch '/full/path' 'string to search' 3
example./codesearch./'eval' 2

, " "
source
share