Extract lines 100 through 120.
Section: Line Selection and Context
Print a specific line range
bash
bash
sed -n '100,120p' file.txtExplanation
`sed -n` suppresses default output so only the requested range is printed.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Line Selection and Context