# MIDDLE v1.20 - copy middle part of text file

#### Revised 18-Aug-97. Copyright (c) 1996-97 by Rune Berg. TextTools Freeware.

Usage - Description - Options - Limitations - Return codes

### USAGE

middle [log logfile] [option] m n [infile] [to outfile]

### DESCRIPTION

middle copies infile to outfile, except the m first and the n last lines.

If infile has m+n or fewer lines, outfile will be empty.

On DOS, m and n must be in the range 0 .. 32767, on Win32 0 .. 2147483647.

If you don't specify infile, middle reads from standard input.
If you don't specify outfile, middle writes to standard output.
If you don't specify logfile, middle writes error messages to standard error.

### OPTIONS

middle recognizes the following command line options:

Option | Function
--- | ---
-v | Print version banner and usage info to standard error (or logfile, if given), then exit.

### LIMITATIONS

Middle can run out of memory if the specified 'middle portion' is very large.

### RETURN CODES

middle returns with one of the following codes ("error levels"):

Code | Meaning
--- | ---
0 | Success
101 | Out of memory
102 | Incorrect command line arguments
104 | Error opening file
105 | I/O error
107 | File name clash

##### End of document