• 2022-03-02
linux怎么判断字符串是否为数字

判断方法:1、用“"$值"|[-n "`sed -n ‘/^[0-9][0-9]*$/p‘`"]”语句;2、用“grep ‘^[[:digit:]]*$‘...

11