Searching of IP_add in multiple scripts! ASAP

Hello Friends,

Plz help me for below query?
I want search the IP_ADD from multiple files which are txt file or .sh files or .xml files which are present in different directories .Iam looking for Forum memebers help.

Advance thanks to forum memebers.Plz reply me ASAP?:slight_smile:

ruby -e 'Dir["**/*.{xml,sh,txt}"].each{|x| a=File.read(x); puts x if !a.scan(/ip_addr/).empty?  }' 

try this,

find . -type f \( -name '*.txt' -o -name '*.sh' -name '*.xml' \) -print | xargs grep "IP_ADD"

But its failed.I done manually search in all directirories and i found in one xml file is in below format.
Param name ="Host" value = "198.256.10.1"
Param name ="User" value = "xx34445xsdasd"
Param name ="Password" value = "fd34445xsdasd"
so wht is query is the above format is present other files in other directories.so can u plz give right command .then i can able find easly.
lot many files are to search.Plz help.

try this,

find . -type f \( -name '*.txt' -o -name '*.sh' -name '*.xml' \) -print | xargs grep  '\"[0-9]\{1,3\}\.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}\"'