From 4d246a558c582c6419e8e8b61cae4218123cf154 Mon Sep 17 00:00:00 2001 From: xyz Date: Wed, 3 Nov 2021 21:34:54 -0700 Subject: f for loop a command --- home/xyz/.local/bin/f | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 home/xyz/.local/bin/f (limited to 'home/xyz/.local/bin/f') diff --git a/home/xyz/.local/bin/f b/home/xyz/.local/bin/f new file mode 100755 index 00000000..e30d66d5 --- /dev/null +++ b/home/xyz/.local/bin/f @@ -0,0 +1,5 @@ +#!/bin/sh + +n="$1" +shift +for i in $(seq "$n"); do "$@" ; done -- cgit v1.2.3-70-g09d2