F
F
flashdix2017-04-08 17:41:04
linux
flashdix, 2017-04-08 17:41:04

How can sed'om find the AAA value in a file and replace the BBB value with CCC in that line?

Is it possible to do this with just sed?
Other options are welcome!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentine, 2017-04-08
@vvpoloskin

sed -i '/aaa/s/bbb/ccc/g' file.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question