I am trying to automate the swapping of characters 1 and 2, 3 and 4, etc, in a an arbitrary-length string of hex characters.Example:A627E39Bbecomes:6A723EB9It seems like this should be possible using sed or one of the other *nix text utilities, but so far I have not been able to find any examples.
How can I swap the order of each two character pair in a string?
text processing;sed;awk