diff options
author | David Wührer <def@gmx.at> | 2024-05-18 21:04:34 +0200 |
---|---|---|
committer | David Wührer <def@gmx.at> | 2024-05-18 21:04:34 +0200 |
commit | 77cfffee6177fb0421fa0fce15d6a1875bde4816 (patch) | |
tree | 251428cdd482ea50cfb019dbd3c3bafd79d2fd14 /bin/reduce | |
parent | 75b23ce1ff0daab363725a2a5755ea80bbeaa68e (diff) |
manuals, sum-down, radix
Diffstat (limited to 'bin/reduce')
-rwxr-xr-x | bin/reduce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/reduce b/bin/reduce new file mode 100755 index 0000000..b9b69fe --- /dev/null +++ b/bin/reduce @@ -0,0 +1,9 @@ +#!/bin/bash + +fn=$1 +f() { eval "$fn" "$@"; } +a=$2 +b=$3 +shift 3 +[[ -z "$b" ]] && exec echo "$a" +exec "$0" "$fn" "$(f "$a" "$b")" "${@@Q}" |