Greetings all.
I am looking for a command to scan man .xml files and of those files i want to print the data on the screen and of that data i would like to only see certain data. below is the example that i have tried
grep -i stagingport= /vhosts/*/sys/active-config.xml | grep 80 | grep -v apache22
/vhosts/dw13343/sys/active-config.xml: <apache port='801' stagingport='80'>
/vhosts/dw13562/sys/active-config.xml: <apache port='801' stagingport='80'>
/vhosts/dw13632/sys/active-config.xml: <apache port='801' stagingport='80'>
/vhosts/dw13746/sys/active-config.xml: <apache port='801' stagingport='80'>
from that data i would only like to see certain info
I would like to see the dwxxxxx and the stagingport=80
how could i do that?
Thanks