Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Created October 1, 2011 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpabloaj/1256416 to your computer and use it in GitHub Desktop.
Save juanpabloaj/1256416 to your computer and use it in GitHub Desktop.
edit last note modificated
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment