Thread Locked This thread is locked - replies are not allowed.



Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
karlmistelberger

Posts: 732
Registered: 5-Dec-2013
Adding Google Maps API Key to existing HTT files
Posted: 20-Mar-2017 13:06
Created some 600 template files with empty Google Maps API Key fields. These don't work anymore on several sites. Regenerating them with the proper API key would have been very tedious. So I used a single command for adding the proper key to existing templates:
find /home/Albums/NeueBilder/ -name Karte.htt -exec sed -i -e 's/google_api_key\ =\ '\'''\''/google_api_key\ =\ '\''A...........'\''/g' {} \;
The sed stream editor used for in place substitution is available for virtually any operating system.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums