1UL(1) User Commands UL(1)
2
3
4
6 ul - do underlining
7
9 ul [options] [file ...]
10
12 ul reads the named files (or standard input if none are given) and
13 translates occurrences of underscores to the sequence which indicates
14 underlining for the terminal in use, as specified by the environment
15 variable TERM. The terminfo database is read to determine the appro‐
16 priate sequences for underlining. If the terminal is incapable of
17 underlining but is capable of a standout mode, then that is used
18 instead. If the terminal can overstrike, or handles underlining auto‐
19 matically, ul degenerates to cat(1). If the terminal cannot underline,
20 underlining is ignored.
21
23 -i, --indicated
24 Underlining is indicated by a separate line containing appropri‐
25 ate dashes `-'; this is useful when you want to look at the
26 underlining which is present in an nroff output stream on a crt-
27 terminal.
28
29 -t, -T, --terminal terminal
30 Overrides the terminal type specified in the environment with
31 TERM.
32
33 -V, --version
34 Display version information and exit.
35
36 -h, --help
37 Display a help text and exit.
38
40 The following environment variable is used:
41
42 TERM The TERM variable is used to relate a tty device with its device
43 capability description (see terminfo(5)). TERM is set at login
44 time, either by the default terminal type specified in /etc/ttys
45 or as set during the login process by the user in their login
46 file (see setenv(1)).
47
49 colcrt(1), login(1), man(1), nroff(1), setenv(1), terminfo(5)
50
52 Nroff usually outputs a series of backspaces and underlines intermixed
53 with the text to indicate underlining. No attempt is made to optimize
54 the backward motion.
55
57 The ul command appeared in 3.0BSD.
58
60 The ul command is part of the util-linux package and is available from
61 Linux Kernel Archive ⟨ftp://ftp.kernel.org/pub/linux/utils/util-
62 linux/⟩.
63
64
65
66util-linux September 2011 UL(1)