shell将命令执行的结果赋值给变量 2015-4-06 8:58 | 1,569 | 0 | 未分类 9 字 | 几秒读完 result=$(ps -ef|grep 'kkk') Do what you need! shell