aboutsummaryrefslogtreecommitdiff
path: root/man/man1
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-03 01:37:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-03 01:37:50 +1200
commitf095526805fd347c23bf0a9e27609a6949051616 (patch)
tree7018ddc7c7f5e275daabc410f9f0588dcaabe9da /man/man1
parentUse full length($0) rather than just length (diff)
downloaddotfiles-f095526805fd347c23bf0a9e27609a6949051616.tar.gz
dotfiles-f095526805fd347c23bf0a9e27609a6949051616.zip
Add rep(1df)
Diffstat (limited to 'man/man1')
-rw-r--r--man/man1/chn.1df7
-rw-r--r--man/man1/rep.1df15
2 files changed, 19 insertions, 3 deletions
diff --git a/man/man1/chn.1df b/man/man1/chn.1df
index 576e5425..5e9c702d 100644
--- a/man/man1/chn.1df
+++ b/man/man1/chn.1df
@@ -24,11 +24,12 @@ Zero is a valid count; in this case the input is passed untouched to output:
$ chn 0 quo < msg
Hello!
.P
-Don't confuse this with simply repeating a command. This happens to work:
+Don't confuse this with simply repeating a command--use rep(1df) for that..
+This happens to do what you might expect:
.P
$ chn 5 sync
.P
-But this will not do what you expect:
+But this won't:
.P
$ chn 5 echo foo
.SH CAVEATS
@@ -42,6 +43,6 @@ There's almost certainly a better way to do this, fixing one or both of the
above issues, and possibly even in shell; maybe with curlier file descriptor
logic to save unneeded open(2) syscalls. I smell `eval` usage on the horizon.
.SH SEE ALSO
-maybe(1df), try(1df)
+maybe(1df), rep(1df), try(1df)
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>
diff --git a/man/man1/rep.1df b/man/man1/rep.1df
new file mode 100644
index 00000000..8971f392
--- /dev/null
+++ b/man/man1/rep.1df
@@ -0,0 +1,15 @@
+.TH REP 1df "August 2017" "Manual page for rep"
+.SH NAME
+.B rep
+\- run a command repeatedly
+.SH USAGE
+.B rep
+COUNT
+COMMAND [ARG1...]
+.SH DESCRIPTION
+Run the given command the specified number of times. Zero is a valid count;
+nothing happens.
+.SH SEE ALSO
+chn(1df), maybe(1df), try(1df), watch(1)
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>