Chinaunix首页 | 论坛 | 博客
  • 博客访问: 404163
  • 博文数量: 65
  • 博客积分: 1491
  • 博客等级: 上尉
  • 技术积分: 702
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-30 15:57
文章分类
文章存档

2011年(6)

2010年(12)

2009年(47)

我的朋友

分类: LINUX

2009-05-30 16:24:45

在vi的命令状态下 :

:%!xxd ——将当前文本转换为16进制格式。

:%!od ——将当前文本转换为16进制格式。

:%!xxd -c 12——将当前文本转换为16进制格式,并每行显示12个字节。

:%!xxd -r ——将当前文件转换回文本格式。


xxd工具: xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form.


od工具: Write an unambiguous representation, octal bytes by default, of FILE to standard output. With more than one FILE argument, concatenate them in the listed order to form the input.

<--文章完-->

阅读(4792) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:------webkitformboundary

给主人留下些什么吧!~~