LINERM(VI) − PWB/UNIX 8/5/77
NAME
linerm − remove lines from a file
SYNOPSIS
linerm −n [ +n −n ... ]
DESCRIPTION
Linerm will remove the indicated lines from its standard input writing the result to the standard output. There can be at most 50 parameters each of which consists of a ‘+’ or ‘−’ followed by a number (the ‘+’ is optional). The numbers define the starting line number where lines are to be copied to the output file or thrown away. ‘+n’ or ‘n’ means begin to copy data; ‘−n’ means begin to throw away data. To get the first 10 lines of a file one can do linerm −11 < file To extract the middle 20 lines of file you can use the command linerm −1 30 −50 <file Unless otherwise specified linerm will start out in the copy state. Thus linerm 1 −10 is exactly the same as linerm −10
SEE ALSO
AUTHOR
Jeff Schriebman
BUGS