Is it possible to use binary values in sed
pattern matching?
I have a one line strings which contain plain text fields separated by binary value 1 as separator.
Is it possible to use sed
to much everything up to binary separator 1?
Or should I use awk
?
Example string where \x1
represents binary value 1:
key1=value1\x1key2=value2\x1key3=value3
Example expected output, values for key1
and key2
:
value1 value2