diff options
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/chn.1df | 7 | ||||
-rw-r--r-- | man/man1/rep.1df | 15 |
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> |