I have a config file that I want to basically edit the uncommented lines, but not the commented lines. I\'m using sed.
sed
For example, I have a file calle
awk:
awk '!/^[[:space:]]*#/ {gsub(/test/,"TEST")} 1' file.txt