【LinuxShell】echo用法详解

  • 使用echo打印信息到终端

1 [Shell]echo "yz test"
2 yz test
3 [Shell]echo yz test  
4 yz test
5 [Shell]echo 'yz test'       
6 yz test
7 [Shell]
  • 使用echo打印信息到文本

1 echo "yz test" > yztest.txt //重定向
2 echo "yz test" >> yztest.txt //追加
  • 使用echo打印空行

1 echo > yztest.txt
原文地址:https://www.cnblogs.com/gaoshaonian/p/11968941.html