Sed an empty line and two new ones before string
What I'd like to do is to make the ending in the Google Earth script look like so (preferably by specifying to add the bolded lines before the line with the string 'googleearth-bin'):
# Fix coordinates for non-US locales
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./googleearth-bin "$@"
Re: Sed an empty line and two new ones before string
Lolness. Well it was just:
sed -i "/googleearth-bin/i\# Fix coordinates for non-US locales\nexport LC_NUMERIC=en_US.UTF-8\n" googleearth