【发布时间】:2012-09-30 14:35:42
【问题描述】:
我想做这样的事情
sudo apt-get install \
#a very long description
#of the package
#that spans multiple lines
pkg1 \ #maybe I want an inline comment also
#another description that
#spans multiple lines
pkg2
请注意,我不仅仅对apt-get 命令感兴趣。
【问题讨论】:
-
你试过把它放在一个shell脚本中并运行它吗?
-
指向可能重复的帖子询问了内联 cmets。我对多线 cmets 很感兴趣。但是那里的相同解决方法确实有效。谢谢。
标签: bash