my input file contais this text
DOPC 1024
PW 30903
CL- 1
arg01 1
My output file should be
DOPC 1024
PW 100
CL- 10
arg01 1
I have used this following command for the single substitution and it works well.
read no_water
read length
sed s/"PW 30903"/"PW $no_water"/ arg01.top >arg$length.top
But I want to do two substitutions by one sed command. Is it possible?
I have tried like this but it doesn't work
sed -e s/"PW 30903"/"PW $no_water"/ ; s/"CL- 1"/"CL- $length"/ <arg01.top >arg$length.top
Can anyone help me in this regard?