• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Modify a line using sed

May 11, 2021

Here’s how to modify a line in a file using sed.

sed -i 's/replace me.*/with this text/' /path/to/a/file.txt

sed -i 's/replace me.*/with this text/' /path/to/a/file.txt

Filed Under: Linux Tagged With: line, modify, replace, sed

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023