export const environment = {
production: true,
firebase: {
apiKey: "APIKEY",
authDomain: "AUTHDOMAIN",
databaseURL: "DATABASEURL",
projectId: "PROJECTID",
storageBucket: "STORAGEBUCKET",
messagingSenderId: "MESSAGINGSENDERID"
},
functionURL:"FUNCTIONSURL",
};
I have this type of file now I want to replace all variables (APIKEY
, AUTHDOMAIN
,..) using bash, please provide some generic solution!
sed -i 's/($APIKEY)/('"$Master_APIKEY"')/g'
Already use for every variable in file.