Create todo list from evernote using rss and displaying with geektool.
I am trying to create a todo list based out of Evernote with the RSS feature to display on my desktop with geektool.
Fairly new to geektool, but loving it. I also use evernote a lot. I created a new notebook inside evernote and was able to get an RSS for the feed. I have been able to get geektool to read and display the feed but I am having a hard time getting it to parse the text correctly.
My bash file is based on news.sh but I need to change the sed commands for it to display correctly. I have included the code below.
Any help on where I might be able to get some direction on how to construct my sed commands would be extremely helpful.
I am trying to create a todo list based out of Evernote with the RSS feature to display on my desktop with geektool.
Fairly new to geektool, but loving it. I also use evernote a lot. I created a new notebook inside evernote and was able to get an RSS for the feed. I have been able to get geektool to read and display the feed but I am having a hard time getting it to parse the text correctly.
My bash file is based on news.sh but I need to change the sed commands for it to display correctly. I have included the code below.
Any help on where I might be able to get some direction on how to construct my sed commands would be extremely helpful.
Code:
#!/bin/sh
URL="http://www.evernote.com/shard/s41/pub/4362876/......./todo/rss.jsp?max=25&sort=2&search="
if [ $# -eq 1 ] ; then
headarg=$(( $1 * 2 ))
else
headarg="-8"
fi
curl --silent "$URL" | grep -E '(title>|description>)' | \
sed -n '4,$p' | \
sed -e 's/<title>//' -e 's/<\/title>//' -e 's/<description>/ /' \
-e 's/<\/description>//' | \
sed -e 's/<!\[CDATA\[//g' |
sed -e 's/\]\]>//g' |
sed -e 's/<[^>]*>//g' |
head $headarg | sed G | fmt
