Categories
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
sed -i '/aaa/s/bbb/ccc/g' file.txt
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question