---
type: link
tags: [link]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-04-06T10:48:49.593601+00:00
---# 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:** link
