version 1.6, 2000/11/09 17:52:34 |
version 1.7, 2002/02/13 08:33:47 |
|
|
.Dq window |
.Dq window |
format, as in |
format, as in |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
% who | rs |
$ who | rs |
.Ed |
.Ed |
.Pp |
.Pp |
This function has been incorporated into the |
This function has been incorporated into the |
|
|
.Pp |
.Pp |
To convert stream input into vector output and back again, use |
To convert stream input into vector output and back again, use |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
% rs 1 0 | rs 0 1 |
$ rs 1 0 | rs 0 1 |
.Ed |
.Ed |
.Pp |
.Pp |
A 10 by 10 array of random numbers from 1 to 100 and |
A 10 by 10 array of random numbers from 1 to 100 and |
its transpose can be generated with |
its transpose can be generated with |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
% jot \-r 100 | rs 10 10 | tee array | rs \-T > tarray |
$ jot \-r 100 | rs 10 10 | tee array | rs \-T > tarray |
.Ed |
.Ed |
.Pp |
.Pp |
In the editor |
In the editor |
|
|
.Pp |
.Pp |
Finally, to sort a database by the first line of each 4-line field, try |
Finally, to sort a database by the first line of each 4-line field, try |
.Bd -literal -offset indent |
.Bd -literal -offset indent |
% rs \-eC 0 4 | sort | rs \-c 0 1 |
$ rs \-eC 0 4 | sort | rs \-c 0 1 |
.Ed |
.Ed |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr jot 1 , |
.Xr jot 1 , |