1) Download a copy of the spreadsheet (the organization is testing Google Docs at this time).
2) Open the spreadsheet in LibreOffice and save it as an HTML file.
3) Use Lynx to find the e-mail addresses and save them to a file.
4) Remove the spaces before each e-mail in the resulting column.
5) Replace the “new line” character after each e-mail address with a comma and a space, so all of the addresses are on one line.
6) Copy the email addresses
7) Open Alpine (I use re-Alpine), and paste the e-mail addresses into the BCC line.
At this time, I use Lynx and Vim to prepare the data, ready to copy into Alpine:
Code: Select all
lynx -dump -force-html some_file.html | sed -n 's/^ *[0-9]*\. //p' | fgrep "mailto:"
Code: Select all
:%s/\n/, /g
Any suggestions how I could automate the work flow?