首页 > 代码库 > bash ${}

bash ${}

${a/23/BB}             # 将23替换成BB

control(){
local id=${1/card/}
echo $id
}
control card10  输出10

 

bash ${}