Grep in specific sub directories/specific files in specific sub directories

PHOTO EMBED

Wed Aug 10 2022 12:25:23 GMT+0000 (Coordinated Universal Time)

Saved by @Rohith #bash

grep -r <pattern> "dir/*/dir/dir/file"

or

grep -r <pattern> "*/dir/dir"

or

// generic
grep -r <pattern> *
content_copyCOPY