如何赋予shell变量name默认值

2023-10-12  本文已影响0人  for笑

赋予shell 变量默认值"zhangsan"

name=""

echo ${name:-zhangsan}

上一篇下一篇

猜你喜欢

热点阅读