Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grep -ircl "foo=" *
- --include=PATTERN Recurse in directories only searching file matching PATTERN.
- --exclude=PATTERN Recurse in directories skip file matching PATTERN.
- grep -ircl --exclude=*.{png,jpg} "foo=" *
- grep -Ir --exclude="*.svn*" "pattern" *
- grep pattern -r --include=*.{cpp,h} rootdir
- grep -rI --exclude-dir=".svn" "pattern" *
- grep -ircl --exclude=*.{png,jpg} "foo=" *
- ack -icl "foo="
- ack -icl --cpp "foo="
- export GREP_OPTIONS="--exclude=*.svn*"
- grep -Ir --exclude="*.svn*" "pattern" *
- grep -rn "foo=" . | grep -v "Binary file"
- find . -not -name '*.png' -o -type f -print | xargs grep -icl "foo="
- export GREP_OPTIONS="--exclude-dir=\*/.svn/\* --exclude=\*~"
- export GREP_OPTIONS="--exclude-dir=\*/.svn/\* --exclude=\*~"
- du -ha | grep -i -o "./.*" | grep -v ".svn|another_file|another_folder" | xargs grep -i -n "$1"
- sudo port install grep
Add Comment
Please, Sign In to add comment