江西住房与城乡建设厅网站,国内网页设计公司前十名,彩票网站为啥链接做两次跳转,爬闪数媒 网站建设linux shell变量 1、变量命名规则2、只读变量3、删除变量 1、变量命名规则
变量名不能加$命名只能使用英文字母、数字和下划线#xff0c;首个字母不能以数字开头中间不能有空格。可以有下划线不能使用标点符号不能使用bash中的关键字
usernametom引用
$userna… linux shell变量 1、变量命名规则2、只读变量3、删除变量 1、变量命名规则
变量名不能加$命名只能使用英文字母、数字和下划线首个字母不能以数字开头中间不能有空格。可以有下划线不能使用标点符号不能使用bash中的关键字
usernametom引用
$username
${username}输出
echo $username2、只读变量
readonly 变量名usernamelishi
readonly username
usernamezs-bash: username: 只读变量
3、删除变量
使用unset命令可以删除变量
unset 变量名