You’ll have to open up the evernote application on either Mac or Windows (they don’t have a linux client), right click on the notebook you want to export, and select “Export.” Select the option to export to html (either one page or several pages, depending on your preference. I went with one html page for each note).
Remove spaces from filenames:
for f in *\ *
do
mv "$f" "${f// /-}"
doneRemove & symbols:
for file in *; do mv "$file" `echo $file | tr '&' 'and'` ; doneYou’ll need to have the excellent pandoc utility installed.
for f in *.html
do
pandoc ${f} -f html -t org -o ${f}.org
doneNow we rename all the .html.org files to just .org:
for file in *.html.org
do
mv "$file" "${file%%.html.org}.org"
doneTo get rid of all the HTML tags:
perl -i -p0e 's/#\+BEGIN\_HTML.*?#\+END\_HTML/ /sg' *.orgAnd finally, remove all the html files:
rm -f *.html