vnote to text converter

I sometimes want the vnotes from my Androd Galaxy on my laptop. The file transfer is trivial, but the notes are sent in vnote 1.1 format.

I only want the note text, so I need to strip away the meta-info. Also, the text contains the unicode control characters =0A and =0D. I prefer to have line feeds.

The following BASH pipeline does the job:

grep ‘BODY’ $1 | awk -F: ‘{$1=””;print $0}’ | sed -e ‘s/=0D//g’ -e ‘s/=0A/\n/g’

where the $1 in the grep command refers to the vnote I want to extract.

I save the script in a file (vnoteextracter.sh) and make it executable.

Results are written to the command line.

Advertisements

Posted on February 28, 2012, in Uncategorized and tagged , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: