mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
9 lines
217 B
Bash
9 lines
217 B
Bash
#!/usr/bin/env bash
|
|
|
|
username="Zhang Peng" ### 声明变量
|
|
echo ${username} ### 输出变量的值
|
|
unset username ### 删除变量
|
|
echo ${username} ### 输出为空
|
|
|
|
export HELLO="Hello World" ### 输出环境变量
|