diff options
author | xyz <gky44px1999@gmail.com> | 2022-05-01 18:10:44 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-05-01 18:10:44 -0700 |
commit | 30ef5da664833789703b38f4d9d2ddd836d33904 (patch) | |
tree | 4514eae71e5b92b87b019f58767ef0fe7a4b7d3a /home/xyz/.local/bin/f | |
parent | 6e733edb88bb163389f62d0c653e8c26d4d22672 (diff) |
rename f as loop, also fsr
Diffstat (limited to 'home/xyz/.local/bin/f')
-rwxr-xr-x | home/xyz/.local/bin/f | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/home/xyz/.local/bin/f b/home/xyz/.local/bin/f deleted file mode 100755 index 7922582a..00000000 --- a/home/xyz/.local/bin/f +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# my For loop -# I can't find good one character name :( -# maybe rename it to loop - -while getopts t: opt; do - case $opt in - t) time="$OPTARG";; - \?) exit 1;; - esac -done -shift $((OPTIND-1)) - -while :; do - # suggested by https://github.com/koalaman/shellcheck/wiki/SC2294 - "$@" - sleep "${time:-1}" -done - -# tests? -#f ls -lah -- -l -#f printf 'echo 1; echo 2' -#f printf 'haha %d lala' 10 - -# tips -#f eval 'echo 1; echo 2' |