目 录Table of Contents GNU make中文手册.....................................................................................................................1 ver - 3.8........................................................................................
目 录Table of Contents GNU make中文手册.....................................................................................................................1 ver - 3.8........................................................................................
变量删除和替换
案例:从头开始匹配,将符合最短的数据删除 (#)
variable_1=I love you, Do you love me
echo $variable_1
variable_2=${variable_1#*ov}
echo $variable_2
案例:从头开始匹配,将复合最短的数据删除(##)
varible_3=${variable_1##*ov}
echo $varible_3
案例:替换字符串,只替换第一次匹配成功的(/)
echo $PATH
var6=