grep

Examples

grep <regexp> -r .

... match regexp recursively



grep <regexp> `find * -name '.svn' -prune -o -type f`

... match regexp recursively and ignore .svn files / dirs



export GREP_OPTIONS="--exclude-dir=.svn"

... a more elegant way to achieve the same result



grep '.\{80\}' <filename>

... match lines longer than 80 characters

2026-04-11 10:57:35

minicms - © 2020-2026 Simeon Simeonov