Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

xxd: how to simply revert without adding "00000000:"?

Sometimes I have unwanted characters in my files (DB tables, git content, etc). When I list them with xxd I have the UTF-8 code, e.g.:

e28099

I would like to know which is this character in bash, so I type:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

echo -n '00000000: e28099' | xxd -r

And I will have

on the console. Is it possible not to include always those zeroes (00000000: )? So are there any params of xxd with which I could type:

echo -n 'e28099' | xxd -??? and the result will be ?

>Solution :

I suggest:

echo 'e28099' | xxd -r -p

Output:

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading