Difference between grep -l and find in UNIX

findgrepunix

Is there a difference between grep -l and find in UNIX?

Best Answer

grep -l prints file names where the file contents contains the pattern

find prints file names where the file name contains the pattern

Related Question