shell: print specific rows of file from terminal