I expect you've solved your problem by now
Just for fun, though, here's a Python script I've written to remove the email addresses from their padding and stick them back together again. From the command line, you would do:
./bcc.py some_document.some_format
You should find a file bcc.txt with the cleaned up emails in the directory you called the script from. In this case, your shell script would go something like:
Code: Select all
#! /bin/sh
cd /home/globetrotter/path/to/directory
google docs get ... [whatever] some.document
bcc.py some.document
I haven't tested it much because I don't have a convenient sample. I should also stress that this probably isn't the best Python style, as I'm just starting out with Python. If you want to try it out, put it somewhere in your $PATH (such as /usr/local/bin) and make it executable.
http://pastebin.com/kvHSg3DQ