How to show a ‘grep’ result with the complete path or file name [closed]

Assuming you have two log-files in:

  • C:/temp/my.log
  • C:/temp/alsoMy.log

‘cd’ to C: and use:

grep -r somethingtosearch temp/*.log

It will give you a list like:

temp/my.log:somethingtosearch
temp/alsoMy.log:somethingtosearch1
temp/alsoMy.log:somethingtosearch2

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)