Hi, i have problem with substitution. I have a file with 1 line of random characters with brackets "{}" around 1 character. I want to move with these brackets on the previous character or on the next one. (I know how to do it if the line of character is still, non-changing.) But I wonder how to do it when I don't know these chars and I don't know where these brackets are.
For Example: " ABC123{X}CBA321 " ==> " ABC12{3}XCBA321 " or " ABC123X{C}BA321 "
I would like to use awk or sed, some regex, maybe...