public
Created

edit last note modificated

  • Download Gist
lastEvernote.sh
Shell
1 2 3 4 5 6
#!/bin/bash
evernoteDir="$HOME/Library/Application*Support/Evernote/data"
dataDir=$(ls -trlh $evernoteDir| tail -n 1| awk '{print $NF}')
contentDir="$evernoteDir/$dataDir/content"
file=$(ls -trlh $contentDir | tail -n 1| awk '{print $NF}')
vim -c '%s/<\/\([A-z]*\)>/<\/\1>\r/g' -c 'g/^$/d' $contentDir/$file/content.html

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.