linux-tutorial/codes/shell/示例脚本/基本脚本/显示系统变量和转义字符.sh

12 lines
174 B
Bash
Raw Normal View History

2019-05-10 11:17:57 +08:00
#!/bin/bash
2019-10-10 08:56:31 +08:00
2019-05-10 11:17:57 +08:00
#display user information from system
echo "User info fro userId:$USER"
echo UID:$UID
echo HOME:$HOME
#换行
2019-10-10 08:56:31 +08:00
echo -e '\n'
2019-05-10 11:17:57 +08:00
echo 'The cost of the item is \$15'