Is there any way to list ‘per-file’ results neatly using grep.
Something like:
$grep -i -r -n Search_Pattern .
Output:
file1.c:
LINE_NO: .......... Search_Pattern ....... /* Line Containing Search Pattern */
LINE_NO: .......... Search_Pattern .......
LINE_NO: .......... Search_Pattern .......
LINE_NO: .......... Search_Pattern .......
file2.c:
LINE_NO: .......... Search_Pattern .......
LINE_NO: .......... Search_Pattern .......
LINE_NO: .......... Search_Pattern .......
LINE_NO: .......... Search_Pattern .......
is this what you want?