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/map | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/map (limited to 'bin/map') diff --git a/bin/map b/bin/map new file mode 100755 index 0000000..ec514ad --- /dev/null +++ b/bin/map @@ -0,0 +1,11 @@ +#!/bin/bash + +fn=$1 +if [[ "$fn" = *\$1* ]] +then f(){ eval "$fn";} +else f(){ eval "$fn" "$1";} +fi +shift +for x in "$@" +do f "$x" +done -- cgit v1.2.3