---
type: link
tags: [public]
created: 2025-10-27T09:17:57.483Z
---# sed |Print lines containing a specific pattern.

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

sed |Print lines containing a specific pattern. sed -n '/pattern/p' file.txt


---
**Keywords:** public
