aboutsummaryrefslogtreecommitdiff
path: root/man/man1
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2014-10-20 20:41:41 -0400
committerRuss Cox <rsc@swtch.com>2014-10-20 20:41:41 -0400
commit72197f89d47444e3c62e1aa0df8bd7059c29104d (patch)
treee3d8ea98b35c26053c3aa46d505e53740054baff /man/man1
parentfd3496d3ef1b3f27c670c25278cbb0304f74a706 (diff)
downloadplan9port-72197f89d47444e3c62e1aa0df8bd7059c29104d.tar.gz
plan9port-72197f89d47444e3c62e1aa0df8bd7059c29104d.tar.bz2
plan9port-72197f89d47444e3c62e1aa0df8bd7059c29104d.zip
col: import from plan 9, by popular demand
TBR=rsc https://codereview.appspot.com/158240043
Diffstat (limited to 'man/man1')
-rw-r--r--man/man1/col.157
1 files changed, 57 insertions, 0 deletions
diff --git a/man/man1/col.1 b/man/man1/col.1
new file mode 100644
index 00000000..0d9513cf
--- /dev/null
+++ b/man/man1/col.1
@@ -0,0 +1,57 @@
+.TH COL 1
+.SH NAME
+col \- column alignment
+.SH SYNOPSIS
+.B col
+[
+.B -bfx
+]
+.SH DESCRIPTION
+.I Col
+overlays lines to expunge reverse line feeds
+(ESC-7)
+and half line feeds (ESC-9 and ESC-8)
+as produced by
+.I nroff
+for .2C in
+.IR ms (6)
+or
+.IR man (6)
+and for
+.IR tbl (1).
+.I Col
+is a pure filter.
+It normally emits only full line feeds;
+option
+.B -f
+(fine) allows half line feeds too.
+Option
+.B -b
+removes backspaces, printing just one of each pile of overstruck
+characters.
+.I Col
+normally converts white space to tabs;
+option
+.B -x
+overrides this feature.
+Other escaped characters and non-printing characters are ignored.
+.SH EXAMPLES
+.TP
+.L
+tbl file | nroff -ms | col | p
+Format some tables for printing on typewriters;
+use
+.I col
+to remove reverse line feeds, and
+paginate the output.
+.SH SOURCE
+.B \*9/src/cmd/col.c
+.SH SEE ALSO
+.IR pr (1)
+.SH BUGS
+.I Col
+can't back up more than 128 lines or
+handle more than 800 characters per line,
+and understands
+.L VT
+(013) as reverse line feed.