网站建设哪家便,WordPress 输入任意作者,微信小程序服务商排名,电子商务网站设计与开发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 变量名