shell脚本 输出执行命令
时间: 2023-10-17 20:36:24 浏览: 122
Linux shell脚本输出日志笔记整理(必看篇)
5星 · 资源好评率100%
在shell脚本中,可以使用echo命令来输出执行的命令。例如,如果要输出一个字符串"Hello, World!",可以使用以下命令:
echo "Hello, World!"
这将在终端中显示出"Hello, World!"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Shell基础-脚本执行方式](https://blog.csdn.net/Sicily_winner/article/details/115403976)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [shell将脚本输出结果记录到日志文件的实现](https://download.csdn.net/download/weixin_38640168/14108830)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文