Thursday, January 3, 2019

How to find files that contains a word in Linux

Run this on the directory you want to search in. In this example we are looking for files that contain the word artesyn.

find . -type f -exec grep "artesyn" '{}' \; -print

No comments:

Post a Comment