Find a name, then inspect matching content The entries below contain every line in the tiny supplied tree. *.txt is a filename pattern. Quoting it passes it unchanged to find; leaving notes/*.txt unquoted lets the shell select these named files. grep -n numbers lines from one in each source file. Files contain exactly the shown lines. search-tree/notes/alpha.txt: task=inventory status=WAIT search-tree/notes/beta.txt: task=practice status=READY search-tree/notes/readme.log: status=ARCHIVED Owned activity: find . -type f -name '*.txt' Then inspect cat notes/beta.txt and grep -n 'status' notes/beta.txt. Predicted status line in beta.txt: 2:status=READY Search all .txt files with grep -n 'status' notes/*.txt; order may vary. Question task: search known text READY inside a file, not change its mode.