我最近开始研究 shell 脚本,我希望能够注释掉 shell 脚本中的一组行。我的意思是就像 C/Java 的情况一样:
/* comment1
comment2
comment3
*/`
我怎样才能做到这一点?
最佳答案
使用 : '
打开,使用 '
关闭。
例如:
: '
This is a
very neat comment
in bash
'
关于shell - 在 Bash 中创建多行注释的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43158140/