aboutsummaryrefslogtreecommitdiff
path: root/rpt.1
blob: e906855694489a3e902146122478a848fb81958d (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.\" Written by Tristan Riehs.
.\" This file is part of repeat and is licensed under the MIT License.
.TH rpt 1 2023-09-27

.SH NAME
rpt \- repeat a shell command

.SH SYNOPSIS
.B rpt
[
.B \-n
|
.B \-\-count
.I COUNT
] [
.B \-f
|
.B \-\-force
]
.I COMMAND

.B rpt
[
.B \-h
|
.B \-\-help
]

.B rpt
[
.B \-V
|
.B \-\-version
]

.SH DESCRIPTION
.B rpt
allows you to easily repeat a command a certain number of times.

.SH OPTIONS
.BR \-h ,
.B \-\-help
.RS
Display help.
.RE

.BR \-V ,
.B \-\-version
.RS
Display version.
.RE

.BR \-n ,
.B \-\-count
.I COUNT
.RS
Repeat
.I COMMAND COUNT
times.
If this flag is not given,
.I COMMAND
is invoked once.
.RE

.BR \-f ,
.B \-\-force
.RS
By default,
.B rpt
stops whenever
.I COMMAND
fails.
If the
.B force
flag is set,
.B rpt
ignores errors.

.SH "EXIT STATUS"
1.  Invalid option.

2.  Error while reading
.IR COUNT .
This includes the case where the
.B count
flag is given,
but
.I COUNT
is missing.

3.
.I COMMAND
not provided.

.SH FILES
None.

.SH "SEE ALSO"
.BR seq (1)

.SH BUGS
Please report bugs at
.IR https://gitlab.com/tristanriehs/repeat .

.SH AUTHOR
Tristan Riehs <tristanriehs@gmail.com>