各位: 有文件 a1 [quote] 1 2 a b c c [/quote] 有文件 b1 [quote] 2 3 4 a c d [/quote] 以上文件均排序,用如下命令[code]comm -13 a1 b1[/code],可以得到正确的结果: [quote] 3 4 d [/quote] 但是,如果排序后文件过大,比如500万条记录的时候,就不会有效了,各位是否有遇到过,如何解决呢? 多谢多谢。
by zhao_yi707 - Shell - 2007-07-03 14:21:30 阅读(1274) 回复(0)
[root@test ~]# cat aaa 1 2 3 4 5 You have new mail in /var/spool/mail/root [root@test ~]# cat bbb 4 7 8 [root@test ~]# comm -1 aaa bbb 4 7 8 不太明白为啥结果是这样??
[root@MyRedHatLinux tmpdir]# ls -1 (数字1) AA afile BB bfile CC cfile dfile [root@MyRedHatLinux tmpdir]# ls -d afile bfile cfile dfile afile bfile cfile dfile [root@MyRedHatLinux tmpdir]# comm -23 <(ls -1) <(ls -d afile bfile cfile dfile) AA BB CC comm的含义是“Compare sorted files FILE1 and FILE2 line by line.”,但是第一个命令结果是多行,第二个命令是一行,且该行并不包含在ls -1的行内。 如...
Javax.comm简介 Javax.comm简介 Javax.comm是Sun公司提供的,用于开发平台独立的通讯应用程序的扩展API。(ps:这里javax的x很准确地表明了它是一个扩展包,而不是核心包(core package),但由于历史原因,javax下的并不都是扩展包,比如swing包已经是Java核心架构的一部分了,不过为了与Java1.1编码兼容,仍使用javax.swing。)javax.comm可以访问RS232接口(串口)及有限制地访问IEEE-1284(并口)。 下载 需要到其官...
In our work, we often encounter the following questions: I have two files: file1 and file2: 1) How can I print out the lines that are only contained in file1? 2) How can I print out the lines that are only contained in file2? 3) How can I print out the lines that are contained both in file1 and file2? There is a powerful shell command that can easily meet our needs, it is: comm. When you meet th...
# comm -13 c3.test.com c3.test.com.local |tail -n 20 assets/user/repo/970 assets/user/repo/971 assets/user/repo/972 assets/user/repo/973 assets/user/repo/974 assets/user/repo/975 assets/user/repo/976 assets/user/repo/977 assets/user/repo/978 assets/user/repo/979 assets/user/repo/980 assets/user/repo/981 assets/user/repo/982 assets/user/repo/983 assets/user/repo/984 assets/user/repo/985 assets/user...
我用comm命令提取两个文件中的相同的行 如下: comm -i12 a.txt b.txt 结果有些在两个文件中都存在的行却提取不出来~~ 我的两个文件都排序了,只是行数不一样~ 请问各位大侠,什么原因呢?
用db2icrt新建一个实例INS1, 然后SET DB2INSTANCE = ins1, 然后db2start 时返回错误信息: Support for one or more communications protocols failed to start successfully. However, core database manager functionality started successfully. 查db2diag.log,发现如下错误信息 2004-05-10-21.44.55.409000 Instance:INS1 Node:000 PID:2204(db2syscs.exe) TID:2128 Appid:none common_communication sqlcctcpconnmgr ...