DEV Community

โ†’ Ale Narvaja
โ†’ Ale Narvaja

Posted on

TIL - Bash: filter a specific text inside files with command find

Today, I learned how to filter a specific string inside files with command find.

find ./ -type f | xargs grep -Hn "abc"
Enter fullscreen mode Exit fullscreen mode

Example notes:
abc: string that I want to find
./: path where to search

Top comments (0)