Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
340 B

#!/usr/bin/env bash
#- Чтение цитат с ibash.org.ru
curl -s http://ibash.org.ru/rss.xml | \
iconv -c -f cp1251 -t utf8 | \
sed 's/<description><!\[CDATA\[/\n---------------------------\n\n/g;
s/\]\]><\/description>//g; s/<br \/>/\n/g; s/\&lt;/>> /g;
s/\&gt;/:/g; s/\&quot;/"/g; s/\s*<.*$\|\s*xmlns:.*$//g;' | \
grep . | less