Linux Today: Linux News On Internet Time.

How to use sed to find and replace text in files in Linux / Unix shell

May 27, 2017, 06:00 (0 Talkback[s])
(Other stories by Anonymous)

I am a new Linux user. I wanted to find the text called 'foo' and replaced to 'bar' in the file named 'hosts.txt.' How do I use the sed command to find and replace on Linux or UNIX-like system?

Complete Story