malongshuai / malongshuai.github.io

2 stars 0 forks source link

Shell脚本深入教程:Bash操作变量和数组元素的方式 | 骏马金龙 #285

Open malongshuai opened 1 year ago

malongshuai commented 1 year ago

https://www.junmajinlong.com/shell/script_course/shell_op_var_arr/

Linux基础系列文章大纲Shell系列文章大纲 Bash操作变量、数组元素所有对变量、数组进行的操作,都是在Shell解析命令行的变量替换阶段完成。 变量替换下面都有省略冒号版本的,表示如果parameter未定义,则怎样怎样。 1234567891011121314151617${parameter:-word}如果parameter未定义或者为空,则用word做变