Posted By

bionic on 12/04/10


replace sed find

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Find and replace with sed

 / Published in: Bash


From the referenced website: Well, that command speaks for itself "sed" edits "-i in place ( on the spot ) and replaces the word "ugly with "beautiful" in the file "/home/bruno/old-friends/sue.txt"

  1. $ sed -i 's/ugly/beautiful/g' /home/bruno/old-friends/sue.txt

Report this snippet  

You need to login to post a comment.