I have to edit several lines in a makefile. For this I have the following sed commands
sed -i \'s/^# NETCDF_PREFIX = path-to-netcdf-install/ NETCDF_PREFIX = \\$