echo命令
1.显示普通字符串:
echo "It is a test"echo It is a test2.显示转义字符
echo "\"It is a test\"""It is a test"3.显示变量
#!/bin/sh
read name
echo "$name It is a test"4.显示换行
5.显示不换行
6.显示结果定向至文件
7.原样输出字符串,不进行转义或取变量(用单引号)
8.显示命令执行结果
Last updated