Medusar's Blog
敬畏知识,谦逊前行
Toggle navigation
Medusar's Blog
主页
Booklist
Resources
About Me
归档
标签
标签 - blue
有用的Shell片段整理
red
blue
yellow
green
2017-05-07 22:44:55
324
0
0
## 截取字符串的最后一位 ``` bash # echo $var 3234j35ja # echo ${var: -1} #注意:-1前要有个空格 a ``` ## 来自网络 1. 很多很全很强大的http://tldp.org/LDP/abs/html/contributed-scripts.html ## 参数校验 ### 校验参数个数 ``` bash #!/bin/sh #-
查看