diff options
Diffstat (limited to 'map')
-rwxr-xr-x | map | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |