📜  grep only number from line - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:50:40.033000             🧑  作者: Mango
代码示例1
$ NUMBER=$(echo "I am 999 years old." | grep -o -E '[0-9]+')
$ echo $NUMBER
999