zkuste si s tím pohrát v terminálu, udělal jsem si malý pokus
S tím původním fr. feedem
a3-ntb% curl -s "http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss" | grep title |\
sed -e :a -e 's/<[^>]*>//g;/</N' |\
sed -e 's/[ \t]*//' |\
sed -e 's/\(.*\)/ \1/' |\
sed -e 's/\.//' |\
sed -e 's/\"//' |\
sed -e 's/\"//' |\
head -n 6 | tail -n 4
FOXNewscomhttp://www.foxnews.com/FOX News Channel - We Report. You Decide.Copyright 2009 FOX News Channelfoxnewsonline@foxnews.comen-usWed, 29 April 2009 06:37:30 ESTfoxnewsonline@foxnews.comhttp://www.foxnews.com/images/headers/fnc_logo.gifFOXNews.com Live Bookmarkhttp://www.foxnews.com/http://www.foxnews.com/story/0,2933,190674,00.htmlfoxnewsonline@foxnews.comThu, 06 Apr 2006 08:03:31 EST04/06http://www.foxnews.com/story/0,2933,190696,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 02:55:22 EST04/05http://www.foxnews.com/story/0,2933,193329,00.htmlfoxnewsonline@foxnews.comThu, 27 Apr 2006 05:35:04 EST04/27http://www.foxnews.com/story/0,2933,190604,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 11:17:47 EST04/05http://www.foxnews.com/story/0,2933,190749,00.htmlfoxnewsonline@foxnews.comThu, 06 Apr 2006 03:16:47 EST04/06http://www.foxnews.com/story/0,2933,190621,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 01:36:25 EST04/05http://www.foxnews.com/story/0,2933,190646,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 05:53:26 EST04/05http://www.foxnews.com/story/0,2933,190721,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 03:28:22 EST04/05http://www.foxnews.com/story/0,2933,190623,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 03:51:20 EST04/05http://www.foxnews.com/story/0,2933,190700,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 01:17:01 EST04/05http://www.foxnews.com/story/0,2933,190753,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 05:09:48 EST04/05http://www.foxnews.com/story/0,2933,190698,00.htmlfoxnewsonline@foxnews.comWed, 05 Apr 2006 01:07:35 EST04/05
a3-ntb% curl -s --connect-timeout 30 "http://www.foxnews.com/xmlfeed/rss/0,4313,1,00.rss" |\
sed -e 's/<\/title>/\n/g' |\
grep -o '<title>.*' |\
sed -e 's/<title>//' |\
head -n 5 | tail -n 4
FOXNews.com Live Bookmark
<![CDATA[100 Homes Threatened by Weakened Dam in Northern California]]>
<![CDATA[Iran Test-Fires Another 'Top Secret' Missile]]>
<![CDATA[Moussaoui Juror Falls Ill; Deliberations to Resume Friday]]>a s českým
a3-ntb% curl -s "http://forum.ubuntu.cz/index.php?type=rss;action=.xml" | grep title |\
sed -e :a -e 's/<[^>]*>//g;/</N' |\
sed -e 's/[ \t]*//' |\
sed -e 's/\(.*\)/ \1/' |\
sed -e 's/\.//' |\
sed -e 's/\"//' |\
sed -e 's/\"//' |\
head -n 6 | tail -n 4
a3-ntb% curl -s --connect-timeout 30 "http://forum.ubuntu.cz/index.php?type=rss;action=.xml" |\
sed -e 's/<\/title>/\n/g' |\
grep -o '<title>.*' |\
sed -e 's/<title>//' |\
head -n 5 | tail -n 4
<![CDATA[Levný DVB-T USB DONGLE v Ubuntu JJ]]>
<![CDATA[Re: Panely v Xfce]]>
<![CDATA[Re: Kubuntu 9.04 - postřehy - pády různých aplikací]]>
<![CDATA[Re: Windowsák instaluje Ubuntu server - mailserver, roundcube]]>
nebo dám ještě tip na xml parser xmlstarlet (je v repozitářích)
a3-ntb% curl -g "http://forum.ubuntu.cz/index.php?type=rss;action=.xml" -s | xmlstarlet sel -t -m /rss/channel/item -v title -n
Ubuntu 8.10 Lenovo Thinkpad R61 FN jas displeje
prechod na 9.04 a pad grafiky
Re: Leadtek Winfast 2000XP Expert a kubuntu 9.04
Levn&#253; DVB-T USB DONGLE v Ubuntu JJ
Re: Panely v Xfce
nebo třeba takto i s odkazy
a3-ntb% curl -g "http://forum.ubuntu.cz/index.php?type=rss;action=.xml" -s | xmlstarlet sel -t -m '//item' -v 'title' -o ' ' -n -v 'link' -n
Re: Upgrade na JJ - &quot;zrychlený&quot; start systému
http://forum.ubuntu.cz/index.php/topic,34843.msg259648.html#msg259648
Re: prechod na 9.04 a pad grafiky
http://forum.ubuntu.cz/index.php/topic,35003.msg259647.html#msg259647
Re: prechod na 9.04 a pad grafiky
http://forum.ubuntu.cz/index.php/topic,35003.msg259646.html#msg259646
Re: Monitor mode
http://forum.ubuntu.cz/index.php/topic,34890.msg259645.html#msg259645
Re: Panely v Xfce
http://forum.ubuntu.cz/index.php/topic,34968.msg259644.html#msg259644
nebo i s obsahem
curl -g "http://forum.ubuntu.cz/index.php?type=rss;action=.xml" -s | xmlstarlet sel -t -m '//item' -v 'title' -o ' ' -n -v 'link' -n -v 'description' -n -n