Output of file#cat filetest1test2test3Skip last line #head -n-1 filetest1test2Skip last two line#head -n-2 filetest1