I have a config file that I want to basically edit the uncommented lines, but not the commented lines. I'm using sed
.
For example, I have a file called file.txt:
test # test # test test
I want to replace "test" with "TEST" but do NOT touch the commented lines. Final output should show:
TEST # test # test TESTSee Question&Answers more detail:os