String to HEX conversion in UNIX

view story

http://www.unix.com – i have this below string which i need to convert it to HEX. i have already tried it but it showing extra few things on it.. let me show what i have done and what is the output i am getting and what is the desired output the input string is Code: "!\"\"\"\"\"\"\"!\"\"\"\"\"\"\"" which is technically nothing but below Code: !"""""""!"""""""" so as for now consider that string is already present in variable myString Code: my (HowTos)