diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-05 00:29:02 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-05 00:29:02 +1200 |
commit | a8a2c0bb7082dff5a419ef504f0618a202503709 (patch) | |
tree | 4aaf3bac1ecf1fab3da3c08faa2884ec98068f9c /README.markdown | |
parent | Skip comments in Makefile Bash completion (diff) | |
download | dotfiles-a8a2c0bb7082dff5a419ef504f0618a202503709.tar.gz dotfiles-a8a2c0bb7082dff5a419ef504f0618a202503709.zip |
Move README mentions of int agg funcs to sublist
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown index 2bc94c08..f1333be4 100644 --- a/README.markdown +++ b/README.markdown @@ -387,6 +387,11 @@ Installed by the `install-bin` target: * `unf(1df)` joins lines with leading spaces to the previous line. Intended for unfolding HTTP headers, but it should work for most RFC 822 formats. +* Four simple aggregators for integer data: + * `mean(1df)` prints the mean. + * `med(1df)` prints the median. + * `mode(1df)` prints the first encountered mode. + * `tot(1df)` totals the set. * `apf(1df)` prepends arguments to a command with ones read from a file, intended as a framework for shell wrappers or functions. * `ax(1df)` evaluates an awk expression given on the command line; this is @@ -431,10 +436,7 @@ Installed by the `install-bin` target: * `maybe(1df)` is like `true(1)` or `false(1)`; given a probability of success, it exits with success or failure. Good for quick tests. -* `mean(1df)` prints the mean of a list of integers. -* `med(1df)` prints the median of a list of integers. * `mftl(1df)` finds usable-looking targets in Makefiles. -* `mode(1df)` prints the first encountered mode of a list of integers. * `mkcp(1df)` creates a directory and copies preceding arguments into it. * `mkmv(1df)` creates a directory and moves preceding arguments into it. * `motd(1df)` shows the system MOTD. @@ -454,7 +456,6 @@ Installed by the `install-bin` target: privileges. * `td(1df)` manages a to-do file for you with `$EDITOR` and `git(1)`; I used to use Taskwarrior, but found it too complex and buggy. -* `tot(1df)` adds up a list of integers. * `try(1df)` repeats a command up to a given number of times until it succeeds, only printing error output if all three attempts failed. Good for tolerating blips or temporary failures in `cron(8)` scripts. |