TheArchiveMan,
The "appropriate" way to do is how Steve H. has recommended.
If you want the output from GAM to be the way you want, then in the
current GAM, change the following lines:
line 1298:
" user_attributes.append({'Email': 'Email'})"
to
" user_attributes.append({'Email': 'Mail'})"
line 1313:
" user_attributes[0].update(Username='Username')"
to
" user_attributes[0].update(Username='User')"
(note the spaces at the beginning of both the lines, Python is "space"
sensitive).
Note that you'll need to do this change every time GAM is updated, and
the line numbers may change.
Ss
On Mar 8, 8:26 am, Steve Hall <
st...@steve-hall.com> wrote:
> Sure - just use the "sed" unix command with some simple regular
> expressions. To change a file containing...
>
> Username,Email
> bsmith,
bsm...@gmail.com
> jdoe,
john....@yahoo.com
> jdoe,
john....@yahoo.com
>
> ...just do something like this:
>
> type extract.csv | sed "1 s/Username/User/" | sed "1 s/Email/Mail/"
> > new.csv
>
> FYI, the "1" tells sed to only work on the first line of the file. If
> you're on Mac or Linux, change "type" to "cat". If necessary, you can
> change the commands to make other adjustments.
>
> If you're on Mac or Linux, you have sed built in. If you're on Windows
> (any flavor), I highly recommend the open source "UnxUtils
> <
http://sourceforge.net/projects/unxutils/>" port of unix commands.