---
type: link
tags: [public]
created: 2025-11-06T02:51:46.190Z
updated: 2025-11-15T20:19:55.708Z
---# sed |Replace text in a file (in-place).

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

sed |Replace text in a file (in-place). sed -i 's/old_text/new_text/g' file.txt


---
**Keywords:** public
