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