The grep tool
Exact match :
$ grep jon /etc/passwd
beginning of lina match:
$ grep ^jon /etc/passwd
example for common use:
$ ls -l /tmp/textfile.ext | grep string
^ = beginning of line
$ = end of line
. = match one character
*= match zero or more characters
[a-b]= match a range of lexicals
lt99
Previous slide
Next slide
Back to first slide
View graphic version