diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-09-28 22:25:37 +0200 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-09-28 22:25:37 +0200 |
commit | 7f7acbf4ca9f8c25e8d10402d8302bc38d3c854e (patch) | |
tree | 911591ea9790ae496fbdd7bbd88bd1ccf6a96695 /README.md | |
parent | f9bdf01303826d8f1de24fe7061ab4057b7da4cb (diff) |
README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..d9c4279 --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +rpt - Easily repeat a shell command +=== + +Repeat provides a simple way to repeat *COUNT* times a command *CMD*. + +```shell +rpt -n COUNT CMD +``` + +My claim is that it is simpler to write than the following : + +```shell +i=0 +while [ $i -lt COUNT]; do + CMD + i=$((i+1)) +done +``` + +Especially from the command line. The use of `rpt` also makes the execution +slightly faster, but performance is not the main goal. + +# Installation + +## Dependencies + +None, except the C standard library. + +## Build dependencies + +- C compiler (`rpt` executable) +- `cp` (installation) +- `gzip` (manual page) +- GNU Make (build system) + +## Installation + +To compile, run : + +```shell +make +``` + +To install, run : + +```shell +make install +``` |