From 77cfffee6177fb0421fa0fce15d6a1875bde4816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Sat, 18 May 2024 21:04:34 +0200 Subject: manuals, sum-down, radix --- bin/reduce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/reduce (limited to 'bin/reduce') 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}" -- cgit v1.2.3