repeat.git


repeat

~ repeat a command n times
git clone https://github.com/djnnvx/repeat.git
log | files | refs | archive | README

README.md (745B)

      1 # repeat
      2 
      3 This is an uber-simple command-line tool to repeat a function n times.
      4 
      5 It very much sucks in its current version, don't actually use this for serious work.
      6 The path, shell, ENV handling is almost non-existent. There is no way to specify if you want your commands to continue even if one fails.
      7 You also can't use bash-specific built-ins like `echo`.
      8 
      9 All it does is execute one function n times. if it fails, it stops. i just needed this for a random script, but why not share it for those
     10 who need it.
     11 
     12 ## Compile
     13 
     14 ```bash
     15 $ make
     16 
     17 # if you dare
     18 $ make install
     19 ```
     20 
     21 > requires `clang` to be installed, but you can compile it with pretty much anything. it is a _very_ simple program.
     22 
     23 ## Usage
     24 
     25 ```bash
     26 $ repeat 5 printf "hello\n"
     27 ```