Posted in Command Line, Linux View some lines in a file Binny V A April 22, 2008 Leave a Comment on View some lines in a file View from 1th to 5th line sed -n '1,5p;5q' example.txt Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.