-
Notifications
You must be signed in to change notification settings - Fork 3
Guideline for one_liners
unix-foundation edited this page Dec 5, 2017
·
16 revisions
Guideline for one-liners in Shell.
- has a description.
- is continued on a single line (for easy maintenance of layout when copying and pasting to a script or terminal).
One-liner files are created in the following format:
(Note: Any section in addition to Description is included if necessary)
# ======= #. SECTION NAME =====================================
# Description
one-liner
# Description
one-liner
# Description
# Note: Note
one-liner- Any documentation section other than Description is included if necessary.
For an example, see one-liners-gnu-linux-output_only-single-value.bash.
- A variable name uses acronyms whenever possible.
All other code style rules are up to the contributor.