aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-02-10 17:21:25 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-02-10 17:21:25 +0100
commit427169e0b4f7e1479f70aa40099f280bca6e2562 (patch)
treeebe9fc070d94e7293a65c8cf5339f5c94619908f
parented106c3e0b7318bd55455e5f8df02f746b6216f5 (diff)
Fix usage example in manual page
The example is supposed to center the input as if the output device is a terminal with a width of 80 characters. The example doesn't use the `-w' flag though, so we set that up.
-rw-r--r--center.14
1 files changed, 2 insertions, 2 deletions
diff --git a/center.1 b/center.1
index e3704bd..5de17eb 100644
--- a/center.1
+++ b/center.1
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: February 7 2022 $
+.Dd $Mdocdate: February 10 2022 $
.Dt CENTER 1
.Os
.Sh NAME
@@ -58,7 +58,7 @@ writing the output to the file
.Ar file2 .
Align the calendar as if the output device has a width of 80 columns.
.Pp
-.Dl $ cal | center | cat - file1 > file2
+.Dl $ cal | center -w 80 | cat - file1 > file2
.Pp
Center align the contents of
.Ar file1