I have an xml file which looks like the following. How can I use grep to search through this file and pipe all the urls into a file seperated by a new line.
<menus>
<defaultMenu>
<group>
<menuItem name="Example one" url="http://www.google.com">
<menuItem name="Example Two" url="http://www.yahoo.com" />
<menuItem name="Example Three" url="http://www.bing.com" />
</menuItem>
</group>
</defaultMenu>
</menus>
For example I want the output file to contain:
http://www.google.com
http://www.yahoo.com
http://www.bing.com