It's Friday afternoon, and my brain has frozen!
grep -E -m 1 -o "<title>(.*)</title>" myfile.rss
returns
<title>Some title</title>
How do I just get Some title
?
It's Friday afternoon, and my brain has frozen!
grep -E -m 1 -o "<title>(.*)</title>" myfile.rss
returns
<title>Some title</title>
How do I just get Some title
?
pipe it further through, for instance
sed -e 's,.*<title>\([^<]*\)</title>.*,\1,g'