Im trying to make a substitution of a single line in a file with awk, for example
changing this:
e1 is (on)
e2 is (off)
to:
e1 is (on)
e2 is (on)
use command:
awk '/e2/{gsub(/off/, "on")};{print}' ~/Documents/Prueba > ~/Documents/Prueba
this makes the substitution but the file ends blank!