diff options
| author | EuAndreh <eu@euandre.org> | 2022-08-12 18:46:42 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2022-08-12 18:46:42 -0300 |
| commit | c0ed55485e8db03673318f67dd06e7a04435c0f9 (patch) | |
| tree | 932fc598a77c8c0fd39cfc17242ea3f970e6c5d8 /bin/max | |
| parent | etc/git/ignore: Always exclude tmp/ directory (diff) | |
| download | dotfiles-c0ed55485e8db03673318f67dd06e7a04435c0f9.tar.gz dotfiles-c0ed55485e8db03673318f67dd06e7a04435c0f9.tar.xz | |
bin/{min,max,clamp}: Add "Examples" section to help string
Diffstat (limited to 'bin/max')
| -rwxr-xr-x | bin/max | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -16,6 +16,29 @@ help() { -h, --help show this message Get the maximum number from the given values. + + + Examples: + + Get the maximum number from a list: + + $ min 5 3 9 9 4 + 9 + + Get the maximum number when negative numbers are given + + $ max -- -3 -5 + -3 + + Get the maximum number given a single number + + $ max 8 + 8 + + The maximum default number: + + $ max + 0 EOF } |
