I have comma seperated file with 3 values. I want to find pattern1 , and in next line I have value 2 , which needs tobe replaced with Value 3.
eg. File XXX,YYY,ZZZ
AAA,BBB,CCC
I need to compare XXX >> when matched >> in next line I have YYY , which needs to replace with ZZZ
What is the sed for this ?
trid sed command with n operation for next line, but struggling
New contributor
neil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.