summaryrefslogtreecommitdiff
path: root/home/xyz/.local
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-03 21:34:54 -0700
committerxyz <gky44px1999@gmail.com>2021-11-03 21:34:54 -0700
commit4d246a558c582c6419e8e8b61cae4218123cf154 (patch)
treec038086b14f366825334495c7c6e4298ca282654 /home/xyz/.local
parent855396524f8758b709f530576aac80147365d7fa (diff)
f for loop a command
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-xhome/xyz/.local/bin/f5
1 files changed, 5 insertions, 0 deletions
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