/kb

personal knowledgebase

Archive for the ‘grep’ tag

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.

Written by HÃ¥vard Grimelid

April 10th, 2008 at 10:13 am

Posted in Shell

Tagged with , , ,