linux - How to show grep result with complete path or file name - Stack Overflow
Have you tried using the -l flag?
grep -l somethingtosearch
This will return just the paths and file names where the search was found, not the whole lines where the match was made.
Use with -r flag for recursion.
Read full article from linux - How to show grep result with complete path or file name - Stack Overflow
No comments:
Post a Comment