Gmail contact import - using a delimited file

1. run.sh - the "user interface", which handles the options, and calls the appropriate functions2. common.sh - the library of functions which is included in run.sh

St. Olaf College has been great about giving me the opportunity to work on these gmail migrations, as well as letting me share these under the GPL.

run.sh:

#!/bin/sh###################### Copyright 2008 Shannon Eric Peevey <speeves@stolaf.edu>## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA######################## Contacts Import/Export script# - exports contacts from the existing systems, and re-imports from the gmail systems.# ####################

# grab the action that we need to performcase $ACTION in i|contactstogoogle ) contactstogoogle ;;esac

common.sh:

#!/bin/sh###################### Copyright 2008 Shannon Eric Peevey <speeves@stolaf.edu>## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA######################## Contacts Import/Export Library# - exports contacts from the existing systems, and re-imports from the gmail systems.# ####################