linux shell变量赋值-Linux中的小括号和大括号,${}/$()/()/{}/${var:-string}/${var:=string}/${var:+string}/${var:?string}/${var%pattern}/${var#pattern}/${var%%pattern}/${var##pattern}
Linux中的小括号和大括号,${}/$()/()/{}/${var:-string}/${var:=string}/${var:+string}/${var:?string}/${var%pattern}/${var#pattern}/${var%%pattern}/${var##pattern}
参考:https://www.cnblogs.com/mengzhongshi/p/3319407.html
linux shell 字符串操作(长度,查找,替换)详解 https://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html