hello ,
for the last 2 days i`m dealing with teh following problem
i have a huge xml files and i want change the line that is above the finded regex
for example
xml file looks like
<grupo>AUDIO</grupo>
<familia>Tarjeta de Sonido Interna</familia>
<marca>CREATIVE</marca>
and it should look like
<grupo>Componentpc</grupo>
<familia>Tarjeta de Sonido Interna</familia>
<marca>CREATIVE</marca>
i did
cat 000615.xml |sed -n '/Tarjeta de Sonido Interna/{g;1!p;};h'
<grupo>AUDIO</grupo>
<grupo>AUDIO</grupo>
<grupo>AUDIO</grupo>
<grupo>AUDIO</grupo>
<grupo>AUDIO</grupo>
and extracted the line above but now i`m stucked `cause i don`t know how to change the line
help!
boss is killing me