linux-tutorial/codes/bash/variable/variableDemo.sh

9 lines
217 B
Bash
Raw Normal View History

2017-11-17 17:06:52 +08:00
#!/usr/bin/env bash
username="Zhang Peng" ### 声明变量
echo ${username} ### 输出变量的值
unset username ### 删除变量
echo ${username} ### 输出为空
export HELLO="Hello World" ### 输出环境变量