---
type: link
tags: [public]
created: 2025-10-27T09:17:57.483Z
---# sed |Substitute a specific occurrence of a pattern.

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

sed |Substitute a specific occurrence of a pattern. sed 's/old_text/new_text/2' file.txt


---
**Keywords:** public
