It is suggested that you use Python instead of Shell to manipulate text files!
Please refer to
Advanced Use of "head" and "tail"
on how to use head and tail for printing rows from a text file.
These 2 commands are convenient when you want to take head/tail rows …
