Use:
    lines [-n] n1[-n2][,...] [file]
e.g.
    lines 23-60,100-140,300-390 myfile
    
Prints lines n1-n2, ... from a file.
If no filename is given, stdin is used.

Options:
    -n	prefix each line with its line numbers from the input stream.