Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将一个数字转换为其等效的字节。目前我这样做:
echo $((0xe0)) | hexdump -c
我得到这个输出:
0000000 2 2 4 \n
我想要得到的是:
0000000 e0
我应该怎么做?
你可以试试:
printf '\xe0' echo -ne '\xe0'