Just did this, in my case I ended up additionally needing to set it in a number of other html files, using this perl script "
greplace.pl". Make sure to create a backup of your files before doing this, or any other bulk-edit operation.
grep -R -l ABQIAAAA1R onebusaway-* |
xargs ./
greplace.pl ABQIAAAA1R_R0bUhLYRwbQFpKHVowhR6ggDNEO1rwvdlk5egWeAHsl3o5xT2ki4Fn-LXLHIrJfb8VmKQeIMh5g {your_new_google_maps_api_key}
#!/usr/bin/env perl
# use:
greplace.pl from_key to_key file1 file2 .... fileN
$from = shift @ARGV;
$to = shift @ARGV;
print "Replacing all occurances of $from with $to for files @ARGV\n";
$^I = '.bak'; # Call for in-place editing; make backups with a .bak suffix
while (<>) {
s/$from/$to/;
print;