Friday, February 15, 2008

Usage of linux command: tee

$> ps -ef |grep httpd|tee > grep_result |awk -F " " '{print $1}'|wc -l
其中tee > file是将前面得到的结果打到文件里以方便查看结果。

No comments :