任何人都知道這種排序是如何工作的?他們是什麼[+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