grep -v 反向查找

1.grep 是查找含有指定文本行的意思,好比grep  'test' 就是查找含有test的文本的行tomcat 2.grep -v 是反向查找的意思,好比 grep -v  "grep" 就是查找不含有 grep 字段的行;   grep -v ^# /etc/profile就是不顯示以#開頭的行進程 例如   ps -ef | grep '/home/helife/tomcat-wap/'
相關文章
相關標籤/搜索