---
type: link
tags: [public]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:56.282Z
---# sed | Print specific lines by line numbers.

**URL:** [https://www.gnu.org/software/sed/manual/sed.html](https://www.gnu.org/software/sed/manual/sed.html)

sed | Print specific lines by line numbers. sed -n '2,5p' file.txt


---
**Keywords:** public
