---
type: link
tags: [link]
created: 2025-11-06T02:51:46.19+00:00
updated: 2026-01-02T01:39:32.364Z
---# 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:** link
