I have a template of the following script and I need to insert the different PARAM
value for each case.
case $1 in
1)
export PARAM=
;;
2)
export PARAM=
;;
3)
export PARAM=
;;
esac
I just found an example how to insert the value for the 1st case PARAM
:
sed -i '/export PARAM=/{s//export PARAM=1212212121/;:a;n;ba}' file
but how can I do this for cases 2 and 3?