How to replace values in a string using sed but keep the string intact?
I'm looking to replace
XX with a hex value and leave the
01 and the
1234 intact. I've tried every combination I can think of but
sed is getting the better of me.
I can do it like this but is there an easier way?
echo "01XX1234" | sed -n 's/\(01..1234\)/01AB1234/g'