Shell脚本echo指令使用小技巧
echo是Shell的一个内部指令,用于在屏幕上打印出指定的字符串。命令格式: 复制代码 代码如下:echo arg您可以使用echo实现更复杂的输出格式控制。显示转义字符复制代码 代码如下:echo ""It is a test""结果将是:"It is a test"双引号也可以省略。显示变量复制代码 代码如下:name="OK"echo "$name It is a test"结果将是:OK It is a test同样双引号也可以省略。如果变量与其...