datefmt: Define 1 year as 365.2425 days instead of 365.25
[sunny256-utils.git] / cmds
blobd2f2c403ee0b60622517ea5c31df30eed439e760
1 #!/usr/bin/env bash
3 #=======================================================================
4 # cmds
5 # File ID: 35e27b98-5ab6-11e4-831d-000df06acc56
7 # Send a list of all available commands and aliases to stdout. Argument
8 # $1 on the command line is delivered to grep(1).
10 # Author: Øyvind A. Holm <sunny@sunbase.org>
11 # License: GNU General Public License version 2 or later.
12 #=======================================================================
14 grep_arg=.
15 test -n "$1" && { grep_arg="$1"; shift; }
16 compgen -ac | grep -i "$grep_arg" | less