Sunday, September 19, 2021

Search for text within files in linux

 find ./ -name '*.txt' | xargs grep yourtext


./: root path to search

-name: file name

No comments:

Post a Comment