📄 commentblock.sh
字号:
#!/bin/bash# commentblock.sh: <<COMMENTBLOCKecho "This line will not echo."This is a comment line missing the "#" prefix.This is another comment line missing the "#" prefix.&*@!!++=The above line will cause no error message,because the Bash interpreter will ignore it.COMMENTBLOCKecho "Exit value of above \"COMMENTBLOCK\" is $?." # 0# 这里将不会显示任何错误. # 上边的这种技术当然也可以用来注释掉#+ 一段正在使用的代码, 如果你有某些特定调试要求的话. # 这比在每行前边都敲入"#"来得方便的多, #+ 而且如果你想恢复的话, 还得将添加上的"#"删除掉. : <<DEBUGXXXfor file in *do cat "$file"doneDEBUGXXXexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -