/kb

personal knowledgebase

grep through several files

without comments

By adding option -H to the grep command, the filename will be output together with the matching line:

grep -i -H TEXT_TO_SEARCH_FOR

-i turns on ignore case.

Theoretically related posts

Written by hgrimelid

April 10th, 2008 at 10:13 am

Posted in Shell

Tagged with , , ,

Leave a Reply