Parse string with bash and extract number

后端 未结 6 1242
猫巷女王i
猫巷女王i 2021-01-04 04:41

I\'ve got supervisor\'s status output, looking like this.

frontend                         RUNNING    pid 16652, uptime 2:11:17
nginx                                


        
6条回答
  •  迷失自我
    2021-01-04 04:51

    Take a look at pgrep, a variant of grep specially tailored for grepping process tabless.

提交回复
热议问题