任何人都知道这种排序是如何工作的?他们是什么[+0.2 -0.42 +0.0 -0.1 -o]是什么意思?Unix排序U
CmdString.Format("sort -u +0.2 -0.42 +0.0 -0.1 -o %s %s",
(const char *)TempFilename,
(const char *)TempFilename);
任何人都知道这种排序是如何工作的?他们是什么[+0.2 -0.42 +0.0 -0.1 -o]是什么意思?Unix排序U
CmdString.Format("sort -u +0.2 -0.42 +0.0 -0.1 -o %s %s",
(const char *)TempFilename,
(const char *)TempFilename);
“-o”是定义输出文件的参数。 +和 - 的其余部分定义字段,并在这些字段中进行偏移以进行排序。 The manual page for sort将给所有血淋淋的细节...
info coreutils 'sort invocation'
命令显示在旧系统上sort使用过时的+ POS1 [-POS2]原点零语法来指定排序键。
在我看来,信息页面并没有比man
页面更有帮助,这就是为什么到目前为止没有太多解释,除了提示手册页会有帮助。
男人排序 - http://www.delorie.com/gnu/docs/textutils/coreutils_28.html – reinierpost 2009-10-14 13:44:24
男人是最好的工具来回答你的问题 – Vijay 2009-10-14 13:48:29