---
type: link
tags: [public]
created: 2025-10-27T09:17:57.483Z
---# sed | Insert text before a specific line.

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

sed | Insert text before a specific line. sed '/pattern/i new_line_text' file.txt


---
**Keywords:** public
