blob: d9c427996ad7a67a941e2d5c052f560137e46708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
```
|