Deleted Added
full compact
rs.1 (79755) rs.1 (95124)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)rs.1 8.2 (Berkeley) 12/30/93
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)rs.1 8.2 (Berkeley) 12/30/93
33.\" $FreeBSD: head/usr.bin/rs/rs.1 79755 2001-07-15 08:06:20Z dd $
33.\" $FreeBSD: head/usr.bin/rs/rs.1 95124 2002-04-20 12:18:28Z charnier $
34.\"
35.Dd December 30, 1993
36.Dt RS 1
37.Os
38.Sh NAME
39.Nm rs
40.Nd reshape a data array
41.Sh SYNOPSIS
42.Nm
43.Oo
44.Fl Oo Cm csCS Oc Ns Op Ar x
45.Oo Cm kKgGw Oc Ns Op Ar N
46.Cm tTeEnyjhHmz
47.Oc
48.Op Ar rows Op Ar cols
49.Sh DESCRIPTION
34.\"
35.Dd December 30, 1993
36.Dt RS 1
37.Os
38.Sh NAME
39.Nm rs
40.Nd reshape a data array
41.Sh SYNOPSIS
42.Nm
43.Oo
44.Fl Oo Cm csCS Oc Ns Op Ar x
45.Oo Cm kKgGw Oc Ns Op Ar N
46.Cm tTeEnyjhHmz
47.Oc
48.Op Ar rows Op Ar cols
49.Sh DESCRIPTION
50.Nm Rs
51reads the standard input, interpreting each line as a row
50The
51.Nm
52utility reads the standard input, interpreting each line as a row
52of blank-separated entries in an array,
53transforms the array according to the options,
54and writes it on the standard output.
55With no arguments it transforms stream input into a columnar
56format convenient for terminal viewing.
57.Pp
58The shape of the input array is deduced from the number of lines
59and the number of columns on the first line.

--- 103 unchanged lines hidden (view full) ---

163.Pp
164With no arguments,
165.Nm
166transposes its input, and assumes one array entry per input line
167unless the first non-ignored line is longer than the display width.
168Option letters which take numerical arguments interpret a missing
169number as zero unless otherwise indicated.
170.Sh EXAMPLES
53of blank-separated entries in an array,
54transforms the array according to the options,
55and writes it on the standard output.
56With no arguments it transforms stream input into a columnar
57format convenient for terminal viewing.
58.Pp
59The shape of the input array is deduced from the number of lines
60and the number of columns on the first line.

--- 103 unchanged lines hidden (view full) ---

164.Pp
165With no arguments,
166.Nm
167transposes its input, and assumes one array entry per input line
168unless the first non-ignored line is longer than the display width.
169Option letters which take numerical arguments interpret a missing
170number as zero unless otherwise indicated.
171.Sh EXAMPLES
171.Nm Rs
172can be used as a filter to convert the stream output
172The
173.Nm
174utility can be used as a filter to convert the stream output
173of certain programs (e.g.,
174.Xr spell ,
175.Xr du ,
176.Xr file ,
177.Xr look ,
178.Xr nm ,
179.Xr who ,
180and

--- 55 unchanged lines hidden ---
175of certain programs (e.g.,
176.Xr spell ,
177.Xr du ,
178.Xr file ,
179.Xr look ,
180.Xr nm ,
181.Xr who ,
182and

--- 55 unchanged lines hidden ---