I wish to traverse all files and folders under a given directory say "/tmp/configuration" and
for all ip address mentioned therein.
I tried find ./ -type f | xargs grep "*.*.*.*"
but it does not populated the correct results.
Can you please suggest.
Try something like:
find . -type f -exec grep -E -- '([0-9]{1,3}\.){3}[0-9]{1,3}' {} +
You need a backslash before literal dots, since dots has a meaning in regular expression, namely "any character" and you need a character before the asterisks, since they are regular expressions, not unix patterns.