求教/bin/ps -ef|grep "$1"|grep grep和/bin/ps -ef|grep grep的区别
发表于 : 2014-06-17 11:44
grep "$1"的作用是什么[xxxx@localhost ~]$ /bin/ps -ef|grep grep
xxxx 16166 2433 0 11:03 pts/0 00:00:00 grep grep
[xxxx@localhost ~]$ /bin/ps -ef|grep "$1"|grep grep
xxxx 16199 2433 0 11:14 pts/0 00:00:00 grep
xxxx 16200 2433 0 11:14 pts/0 00:00:00 grep grep