Print file name and line number

Show the file and line number for each match

grep -rn 'panic:' /var/log/app/

tool
grep15 commands
tags
grepdebug

More grep commands

all 15 grep commands