sau si mai bine wget -O - http://rss.gmane.org/messages/excerpts/gmane.org.user-groups.rlug.general|grep '<item rdf:about="http://permalink.gmane.org'|egrep -o "[0-9]+"|sort|uniq|head -n 1
varianta initiala nu ar merge ok mereu 2012/1/31 Quamis <[email protected]>: > Am zis mai sus ca poti extrage ultimul id dintr-un rss > > Probabil nu cel mai elegant mod de a obtine asta, dar merge > > wget -O - > http://rss.gmane.org/messages/excerpts/gmane.org.user-groups.rlug.general > | grep "permalink.gmane.org" | egrep -o "[0-9]+"| sort | uniq | head > -n 1 > > > 2012/1/31 Ioan Eugen Stan <[email protected]>: >> În data de 30 ianuarie 2012, 22:08, Quamis <[email protected]> a scris: >>> gresit, se pare ca moare scriptul lor de export dupa ~90s >>> >>> incearca sa pui asta intr-un script.sh >>> #!/bin/bash >>> >>> START=1 >>> END=80791 >>> for (( i=$START; i<=$END; i+=5000 )); do >>> s=$(( $i + 5000 )); >>> wget "download.gmane.org/gmane.org.user-groups.rlug.general/$i/$s"; >>> done >>> >> >> Vreau să generalizez scriptul să descarce orice listă, de la linia de >> comandă. Cum pot să aflu câte mesaje sunt într-o listă , a.k.a limita >> maximă? >> >> Numai bine, >> >> -- >> Ioan Eugen Stan >> http://ieugen.blogspot.com/ >> _______________________________________________ >> RLUG mailing list >> [email protected] >> http://lists.lug.ro/mailman/listinfo/rlug > > > > -- > -------------------------------------------- > ----THE END of this transmission---- -- -------------------------------------------- ----THE END of this transmission---- _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
