13

Polish quote of the day

Posted in Collections by ZukZuk 237 days ago

Just download and use! Have fun.

Code:

curl --silent http://www.przyslowia-cytaty.com/\?homeq\=random > /tmp/quote.html
 echo `cat /tmp/quote.html | awk -F"<h2 class=\"title\">" '{print $2}'|awk -F"</h2>" '{print $1}'|awk -F">" '{print $2}'|tr -d '\n'|sed -e 's/&#8211;/-/g'| sed -e 's/&#822[1,2];/"/g'| awk -F"<" '{print $1}'` "\n- " `cat /tmp/quote.html |awk -F"<span class=\"author\">" '{print $2}'|awk -F"</span>" '{print $1}'|awk -F">" '{print $2}'|tr -d '\n' |awk -F"<" '{print $1}'` "\n" | fold -s -w 80`

You can adjust quote folding by changing last parameter of script (fold command).


Cytat dnia po polsku.

Comments

Log in to comment or register here.