I have a file like so:
some line
some other line
DisplayChoices=SAMSUNG
yet another line
ChipManufacturer=LG
and yet another line
( there may be lots more of lines in the file, but the = sign is unique, only present in the lines i want to perform action on)
Now, I need to convert the string after = into a hex representation so eventually it should look like
some line
some other line
DisplayChoices=53,41,4D,53 (etcetera, hex representation, seperated by comma`s)
yet another line
ChipManufacturer=4C,47
and yet another line
I tried sed and od but to no avail, od worked on the complete file, but it I need to only convert the specified strings. Anyone know a solution?