get line from file.. and between
sed -n '1,5p' fileawk 'NR>=1&&NR<=5{print $0} file
QOTO: Question Others to Teach Ourselves An inclusive, Academic Freedom, instance All cultures welcome. Hate speech and harassment strictly forbidden.