Tutorial by Examples

$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash operator:x:11:0:operator:/root:/sbin/nologin
$ egrep '^(0|1)+ [a-zA-Z]+$' searchfile.txt 011 AaBBS
$ fgrep "." .bashrc # will match lines with a dot.

Page 1 of 1