Trying to get an IP adress from a file

This is probably a real n00b question but i`m not able to figure it out.
I have a folder of configuration files that contain IP-adresses. The line i`m interested in looks like this:

IP_ADDRESS="123.123.123.1123"
Some have muliple ip adresses, so the line will look like :

IP_ADDRESS="123.123.123.123 123.123.123.123"

I`m able to get all these lines by entering the command
"cat *.conf | grep IP_ADDRESS"

The thing i`m not able to do is stripping all the the IP_ADDRESS=" and the final quote from this line. Does anyone know how to do this within a shell script?

Thanks!

grep IP_ADDRESS your_filename | sed 's/^IP_ADDRESS="\(.*\)"$/\1/'

tyler_durden

try this

 
cat *.conf | grep IP_ADDRESS | cut -d  '"' -f2
awk -F\" '/IP_ADDRESS/{print $2}' file

If you are grep'ing through multiple conf files then you may want to try this -

grep IP_ADDRESS *.conf | sed 's/^.*IP_ADDRESS="\(.*\)"$/\1/'

Thanks guys! This is the command that does it for me:

awk -F\" '/IP_ADDRESS/{print $2}' *.conf