regex - Parse string with bash and extract number -
I have been diagnosed with the status of the supervisor, looking like this.
Moving forward 16652 PID, uptime 2:11:17 NGN running PID 16651, uptime 2:11:17 Running pad 16607, uptime 2:11:32
I need to remove the PID of nginx I have done it through the grep -P command, but grep perl on the remote machine is built without regular expression support.
It looks like what CAD or AJC really really wants, but I am not familiar with them.
Please help me find out how to do it, thanks in advance
sed 's /.* pid \ ([0- 9] * \). * / \ 1 / '
Comments
Post a Comment