red
blue
water
gray
white
I want to use
sed '/blue/,/gray/!b;//!d;/blue/r file2' file1
As mentioned in this Replace text between two lines with contents of a file stored in a variable in sed thread
But instead of file2
i want to enter new string directly in command. Can any one show me how to do that.