How to extract value from shell and regex

前端 未结 0 1891
梦毁少年i
梦毁少年i 2021-01-27 22:20

I have a string "12G 39G 24% /dev" . I have to extract the value \'24\'. I have used the below regex

grep \'[0-9][0-9]%\' -o

But I am ge

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