I have a directory (e.g.,
abc/def/efg) with many sub-directories (e.g.,:
abc/def/efg/(1..300)). All of these sub-directories have a common file (e.g.,
file.txt). I want to search a string only in this
file.txt excluding other files. How can I do this?
grep -arin "pattern" *, but it is very slow if we have many sub-directories and files.