如何在bash中修饰注释?

t7e*_*t7e 5 bash

我有时会在 bash 脚本中看到类似的注释框架:

\n
#!/bin/bash\n#===================================================================================\n#\n# FILE: stale-links.sh\n#\n# USAGE: stale-links.sh [-d] [-l] [-oD logfile] [-h] [starting directories]\n#\n# DESCRIPTION: List and/or delete all stale links in directory trees.\n# The default starting directory is the current directory.\n# Don\xe2\x80\x99t descend directories on other filesystems.\n#===================================================================================\n
Run Code Online (Sandbox Code Playgroud)\n

是否有任何程序可以生成这样的装饰以供评论,或者人们通常手动创建它?

\n

PS 经过一番搜索,我发现了类似的线程:
\n How can I create a message box from the command line?
\n bash 脚本,在框中回显输出

\n

MDe*_*usk 6

我真的很喜欢 Thomas Jensen 的盒子。它的作用不仅仅是您所描述的注释框,也不仅仅是用于 shell 脚本。它是一个命令行实用程序,还与多个文本编辑器集成,包括我个人最喜欢的。