I am very new at this so please forgive me if I'm being very dumb with this question but ...
I've got a makefile that contains a large number of environment variables. I want to write a script that will produce a copy of this makefile that has all the variables replaced with their values.
As a first step towards this I'm trying use the following line but it's totally not working and I'm stuck so any help you can give would be greatly appreciated. The aim of is to replace globaly from the "Makefile" all instances of $<variable name> with ${<variable name>) and put the result into a "Makefile_values".
M
Trainee Chocolate Management Executive.
I've got a makefile that contains a large number of environment variables. I want to write a script that will produce a copy of this makefile that has all the variables replaced with their values.
As a first step towards this I'm trying use the following line but it's totally not working and I'm stuck so any help you can give would be greatly appreciated. The aim of is to replace globaly from the "Makefile" all instances of $<variable name> with ${<variable name>) and put the result into a "Makefile_values".
Code:
sed 's/\$*/\${&}/gw "Makefile_values"' Makefile;
M
Trainee Chocolate Management Executive.