- Joined
- May 2, 2006
- Messages
- 13,861
- Likes received
- 1,635
- Thanks received
- 365
- Location
- Euroland
I have an rss file containing the following;
I have no idea how sed and awk work but I guess they are the tools for the job? What I want to do is be able to pull the High and low tide times and heights from inside the description tags using a shell script.
Any ideas?
TIA
Pondy
Code:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Some Tide Times</title>
<link>http://www.tidetimes.org.uk/Some-tide-times</link>
<description>Some tide times.</description>
<lastBuildDate>Wed, 27 Mar 2013 00:00:00 GMT</lastBuildDate>
<language>en-gb</language>
<atom:link href="http://www.tidetimes.org.uk/Some-tide-times.rss" rel="self" t
ype="application/rss+xml"/>
<item>
<title>Some Tide Times for 27th March 2013</title>
<link>http://www.tidetimes.org.uk/Some-tide-times</link>
<guid>http://www.tidetimes.org.uk/Some-tide-times</guid>
<pubDate>Wed, 27 Mar 2013 00:00:00 GMT</pubDate>
<description><a href="http://www.tidetimes.org.uk" title="Tide Times">Ti
de Times</a> & Heights for<br/><a href="http://www.tidetimes.
org.uk/Some-tide-times" title="Some tide times">Some</a> on 27th Mar
ch 2013<br/><br/>00:34 - Low Tide (1.40m)<br/>06:43
- High Tide (11.60m)<br/>12:58 - Low Tide (1.40m)<b
r/>19:05 - High Tide (11.70m)<br/></description>
</item>
</channel>
</rss>
I have no idea how sed and awk work but I guess they are the tools for the job? What I want to do is be able to pull the High and low tide times and heights from inside the description tags using a shell script.
Any ideas?
TIA
Pondy

: