- 论坛徽章:
- 0
|
本帖最后由 rongpmcu 于 2013-01-10 12:57 编辑
回复 11# reyleon
# comm --version
comm (GNU coreutils) 8.5
Copyright (C) 2010 Free Software Foundation, Inc.
许可证:GPLv3+:GNU 通用公共许可证第3 版或更新版本<http://gnu.org/licenses/gpl.html>。
本软件是自由软件:您可以自由修改和重新发布它。
在法律范围内没有其他保证。
由Richard M. Stallman 和David MacKenzie 编写。
这样就可以- # comm -3 --nocheck-order <(sort -t. -k4 -n CA|awk '!a[$0]++') <(sort -t. -k4 -n CB|awk '!a[$0]++')|xargs -l
复制代码- If the `--check-order' option is given, unsorted inputs will cause a
- fatal error message. If the option `--nocheck-order' is given,
- unsorted inputs will never cause an error message. If neither of these
- options is given, wrongly sorted inputs are diagnosed only if an input
- file is found to contain unpairable lines. If an input file is
- diagnosed as being unsorted, the `comm' command will exit with a
- nonzero status (and the output should not be used).
- Forcing `comm' to process wrongly sorted input files containing
- unpairable lines by specifying `--nocheck-order' is not guaranteed to
- produce any particular output. The output will probably not correspond
- with whatever you hoped it would be.
复制代码 我的理解 是不是comm认为
10.0.0.1
10.0.0.12这样就满足if an input file is found to contain unpairable lines ??? |
|