i want to turn a string like
AaAa
into
a string like this
%<41>%<61>%<41>%<61>
Simple enough with the programming languages i am familar with, but with bash i can't get get the piping right to do what i am trying to do:
- split string into char array
- turn each char into hex
- wrap each hex value into
%<FF>
- concat string
this is my current way which gets me half way there:
echo -n "AaAa" | od -A n -t x1