標題:
; 和 | 的分別 ?
[打印本頁]
作者:
wyuewai
時間:
2008-12-7 20:34
標題:
; 和 | 的分別 ?
; 和 | 的分別 ?
謝謝.
who;sort
who|sort
有什麼分別呢 ?
作者:
mggie
時間:
2008-12-7 22:33
if you're talking about bash, then you may refer to
http://www.gnu.org/software/bash/manual/bashref.html#Pipelines
http://www.gnu.org/software/bash/manual/bashref.html#Lists
作者:
mggie
時間:
2008-12-8 12:12
......
第一,除左#3既post,叫樓主睇web page係好既回應之外,其他post唔知答緊乜野呢
第一個 例子,who;sort
";" 只係代表前後個兩獨立的shell command。
第二個例子,who|sort
"|" 代表第一個shell command 0既 standard out 輸入 第二個command 0既 standard in
就是如你想把who command 0既 output,sort 一次,咁你要用第二個例子。某程度上,第一個例子係會係0個 shell hold 住,因為sort 會等你input。
歡迎光臨 UFunFun 討論區 (http://www.ufunfun.com/)
Powered by Discuz! 6.0.0