StupidBeauty
Read times:456Posted at:Wed Mar 3 02:45:04 2010这个程序在Everest系统中是在diffutils包中的。 最简单的使用方法就是:cmp 文件1 文件2 它就会报告中哪些字节不同,在这个程序中,对于文件的字节是从1计数的。 例如:
bash-3.2# cmp Source/忍者蛙.nes  Modified/忍者蛙233.nes Source/忍者蛙.nes Modified/忍者蛙233.nes differ: byte 234, line 2
可以运行cmp --help来看它的运行参数:
bash-3.2# cmp --help Usage: cmp [OPTION]... FILE1 [FILE2 [SKIP1 [SKIP2]]] Compare two files byte by byte. -b  --print-bytes  Print differing bytes. -i SKIP  --ignore-initial=SKIP  Skip the first SKIP bytes of input. -i SKIP1:SKIP2  --ignore-initial=SKIP1:SKIP2 Skip the first SKIP1 bytes of FILE1 and the first SKIP2 bytes of FILE2. -l  --verbose  Output byte numbers and values of all differing bytes. -n LIMIT  --bytes=LIMIT  Compare at most LIMIT bytes. -s  --quiet  --silent  Output nothing; yield exit status only. -v  --version  Output version info. --help  Output this help. SKIP1 and SKIP2 are the number of bytes to skip in each file. SKIP values may be followed by the following multiplicative suffixes: kB 1000, K 1024, MB 1,000,000, M 1,048,576, GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y. If a FILE is `-' or missing, read standard input. Report bugs to <bug-gnu-utils@gnu.org>.
功能还是蛮多的啊。 本座是看了这个帖子之后知道的:http://linux.chinaunix.net/bbs/thread-1034302-1-1.html
Your opinions
Posted at:Wed Mar 3 12:06:22 2010ggarlictry this:comm 参数 -1 -2 -3 比较有用
Posted at:Wed Mar 3 12:32:30 2010ggarlic鄙视我吧,我没仔细看帖子。。。comm不适用于你这种情况
Posted at:Wed Mar 3 13:35:47 2010包子妹妹好的,鄙视你。鄙视我吧,我没仔细看帖子。。。comm不适用于你这种情况
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4