Last change
on this file since 0170798 was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Imported original source code.
|
-
Property mode
set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3ae31e9] | 1 | NAME
|
---|
| 2 | body - display lines from the body of a file
|
---|
| 3 |
|
---|
| 4 | SYNOPSIS
|
---|
| 5 | body [-s num] [-{e|n} num] [-{l|w|c}] [-d num] [file] ...
|
---|
| 6 |
|
---|
| 7 | DESCRIPTION
|
---|
| 8 | Body reads each file in sequence and displays it on the
|
---|
| 9 | standard output. Thus
|
---|
| 10 |
|
---|
| 11 | body file
|
---|
| 12 |
|
---|
| 13 | displays the file on the standard output, and
|
---|
| 14 |
|
---|
| 15 | body file1 file2 >file3
|
---|
| 16 |
|
---|
| 17 | concatenates the first two files and places the result on
|
---|
| 18 | the third.
|
---|
| 19 |
|
---|
| 20 | If no input file is given body reads from the standard input
|
---|
| 21 | file.
|
---|
| 22 |
|
---|
| 23 | The -s option specifies the unit to start output at. If no
|
---|
| 24 | starting unit is specified, 1 is used.
|
---|
| 25 |
|
---|
| 26 | The -e option specifies the unit to end output at. The
|
---|
| 27 | default is to output until end of file.
|
---|
| 28 |
|
---|
| 29 | The -n option specifies the number of units to output. The
|
---|
| 30 | default is 10.
|
---|
| 31 |
|
---|
| 32 | The -{lwc} option specifies the unit to use for -e, -s, and
|
---|
| 33 | -f. The units are line, word, or character.
|
---|
| 34 |
|
---|
| 35 | Only one of -e or -n, or one of -l, -w, or -c allowed.
|
---|
| 36 |
|
---|
| 37 | The -d option specifies debug flags. Normally this option
|
---|
| 38 | will not be used.
|
---|
| 39 |
|
---|
| 40 | EXAMPLES
|
---|
| 41 | To copy lines 5 through 10 of the file myfile to the file
|
---|
| 42 | junk, use:
|
---|
| 43 |
|
---|
| 44 | body -s 5 -e 10 myfile > junk
|
---|
| 45 | or
|
---|
| 46 | body -s 5 -n 5 myfile > junk
|
---|
| 47 |
|
---|
| 48 | NOTES
|
---|
| 49 | There is an arbitray limit of 1024 characters per line.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.