How can I find the word "UP" and replace it with "DOWN" in below data using sed, awk or grep?
document.getElementById("p1").innerHTML = "API Dev :: UP";
document.getElementById("p2").innerHTML = "API QA :: UP";
document.getElementById("p3").innerHTML = "API Reg :: UP";
document.getElementById("p4").innerHTML = "API Prod :: UP";
I am looking to find/replace one line at a time. Something like using for loop and then find/replace one line after other.
Thanks!
one line at a time