2013-03-08 27 views
-2

我很混淆使用uniq命令,任何人都可以說明這個命令以及如何使用它?如何使用uniq Unix命令指定輸入和輸出文件?

如何在沒有指定任何選項的情況下使用uniq?

任何例子是幫助和讚賞

+3

它是什麼,你想要做* *?如果你只是想解釋一下這個命令的作用,我會把你轉到manpage。 – Celada 2013-03-08 02:50:42

回答

1
uniq [ options go here first ] [input file is second] [outputfile If none write to stdout (console)] 

你有一個排序的文件foo,你想一個uniq的文件,酒吧

uniq foo bar 

打印重複行tty的屏幕

uniq -d foo 

只打印唯一行

uniq -u foo 

你真的應該考慮學習閱讀文檔 - 信息,或人