Usage of linux command: tee
$> ps -ef |grep httpd|tee > grep_result |awk -F " " '{print $1}'|wc -l
其中tee > file是将前面得到的结果打到文件里以方便查看结果。
$> ps -ef |grep httpd|tee > grep_result |awk -F " " '{print $1}'|wc -l
其中tee > file是将前面得到的结果打到文件里以方便查看结果。
发表者
俞 伟军
位置在:
2/15/2008 04:53:00 PM
No comments :
Post a Comment