blob: 835e137881bd48239477fc697bc3cd5a1639e97c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
.TH numbered 1
.
.
.SH NAME
.
numbered - add line numbering to the given input.
.
.
.SH SYNOPSYS
.
\fBnumbered\fR
.
.
.SH DESCRIPTION
.
.PP
\fBnumbered\fR adds line numbering to the text content of the given input.
.
.PP
\fBnumbered\fR reads from \fISTDIN\fR and writes to \fISTDOUT\fR.
.
.
.SH OPTIONS
.
.
None.
.
.SH EXAMPLES
.
.PP
Add line numbering to a single file:
.
.RS
.nf
$ numbered < Makefile
.fi
.RE
.
.
.PP
Add line numbering to multiple files:
.
.RS
.nf
$ cat f1.txt f2.txt | numbered
.fi
.RE
.
.
.SH SEE ALSO
.
\fBcat(1), \fBawk\fR(1)
|