8 2opml - Convert list of URLs to OPML.
12 2opml [--add-attributes <ATTRIBUTES>] < urls.txt
16 Convert text file, containing "<TITLE> <URL>" looking lines, to OPML.
39 echo "Usage: 2opml [--add-attributes <ATTRIBUTES>] < urls.txt"
40 echo "Convert text file, containing \"<TITLE> <URL>\" looking lines, to OPML."
54 echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
55 <opml version=\"1.0\"><body>"
57 while read -r title url
59 title
=`xmlquote "$title"`
62 echo "<outline type=\"rss\" title=\"$title\" text=\"$title\" xmlUrl=\"$url\" $add_attributes />"