Grep GREP¶ Count the number of matches¶ grep -c 'error' /var/log/syslog Case insensitive search¶ grep -i 'Alias' /.bashrc Recursive search within sub-dirs¶ grep -r 'error' /var/log Returns file without matches¶ grep -L 'Alias' /home/mhs* Show line number¶ grep -n