expr
实例:
12345678
#!/bin/shstring=" 12 "number=$[string]# number=$((string))# number=`expr $string`# let number="string"echo -e "number=$number "echo -e "string=$string "
结果:
123
-e number=12-e string= 12