ps -ef | grep * command not working properly

前端 未结 0 1052
梦谈多话
梦谈多话 2021-01-20 11:13

I have simple unix shell script as follows. Which is giving different count for a service

#!/bin/bash
service=$1

ps -ef | grep $service | grep -v "grep&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题