Ubuntu 14.04 Trusty Tahr.
Suppose I have directory called 'testmag' which may contain 100s of xml files and directories which in turn contain many xml files as well. I don't know names of any xml files but I know one of them contains tag <dbname>....</dbname>
.
Now how to find the file containing the aforementioned tag and grep the tag's value as output in terminal