summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/loop
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-03 21:38:16 -0700
committerxyz <gky44px1999@gmail.com>2021-11-03 21:38:16 -0700
commit37d78e49024ca1cbef50dd91bf841f083533fce0 (patch)
tree93e6264798430a20d080b3b04e37a22a31588454 /home/xyz/.local/bin/loop
parent090cfe73b399f69e7bfcd2e7f827a37b2dc9fd04 (diff)
mv f to loop
Diffstat (limited to 'home/xyz/.local/bin/loop')
-rwxr-xr-xhome/xyz/.local/bin/loop5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/loop b/home/xyz/.local/bin/loop
new file mode 100755
index 00000000..e30d66d5
--- /dev/null
+++ b/home/xyz/.local/bin/loop
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+n="$1"
+shift
+for i in $(seq "$n"); do "$@" ; done