All pastes #481332 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-10 19:49 UTC
rendered paste body
	urls=$(cat $datadir/torrents.totry | tr \' \" | sed -n 's/<link>\(.*\)<\/link>/\1/p')
	while read line 
	do
		t=$(echo $line | tr \' \" | sed -n 's/<title><\!\[CDATA\[\(.*\)]]><\/title>/\1/p' | tr -s '[:space:]' '_')
		if [ -n "$t" ]; then
			title[$i]=$t
		fi
		echo "Title ${title[$i]}"
		i=$(($i+1))
	done < $datadir/torrents.totry