MIDDLE v1.30 - copy middle part of text file
Revised 2-Jan-99. Copyright (c) 1996-99 by Rune Berg. TextTools Freeware.

Usage | Description | Example | Options | Limitations | Return Codes | Version History | tt_r6


UsageTop | Next

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


DescriptionTop | Previous | Next

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.


ExampleTop | Previous | Next

The command:

applied to file "mydata.txt" containing:

prints the following to the screen:


OptionsTop | Previous | Next

middle recognizes the following command line options:


LimitationsTop | Previous | Next

middle runs out of memory if the specified 'middle portion' is very large.


Return CodesTop | Previous | Next

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


Version HistoryTop | Previous

These are the released versions:

End of document