From time to time I see similar framing for comments in bash scripts:
#!/bin/bash
#===================================================================================
#
# FILE: stale-links.sh
#
# USAGE: stale-links.sh [-d] [-l] [-oD logfile] [-h] [starting directories]
#
# DESCRIPTION: List and/or delete all stale links in directory trees.
# The default starting directory is the current directory.
# Don’t descend directories on other filesystems.
#===================================================================================
Is there any program to generate such a decoration for comments or do people usually create it manually?
P.S. After some search, I found similar threads:
How can I create a message box from the command line?
bash script , echo output in box
usage
andhelp
functions instead at the beginning of your scripts. They carry the same information, look a little less fancy, but it's a good convention to print a usage message on wrong arguments and a description at-h
option. Having this information twice in the functions and in the block header may lead to one of them not getting updated on changes. – Philippos Jun 20 '22 at 05:44i
#
Esc
60
a
=
Esc
– glenn jackman Jun 20 '22 at 13:12yy
+pp
to duplicate it. – steve Jun 20 '22 at 20:12