A command line utility to print an arbitraty lines of a file.
suppose this is my-file.txt
I cat
II dog
III cow
IV horse
V bird
VI duck
VII shark
VIII whale
print the first line of file
$ lines -n1 my-file.txt
I catprint from the first line to the 5th line
$ lines -n 1..5 my-file.txt
I cat
II dog
III cow
IV horse
V bird
print the last line
$ lines -n -1 my-file.txt
VIII whale
print the last 3 lines
$ lines -n -3..-1 my-file.txt
VI duck
VII shark
VIII whale