---
type: link
tags: [public]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:57.110Z
---# 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
