diff options
author | xyz <gky44px1999@gmail.com> | 2021-11-03 21:34:54 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-11-03 21:34:54 -0700 |
commit | 4d246a558c582c6419e8e8b61cae4218123cf154 (patch) | |
tree | c038086b14f366825334495c7c6e4298ca282654 /home/xyz | |
parent | 855396524f8758b709f530576aac80147365d7fa (diff) |
f for loop a command
Diffstat (limited to 'home/xyz')
-rwxr-xr-x | home/xyz/.local/bin/f | 5 |
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 |