Hello All
Probably this is very simple for you but I cant figure it out
I have to replace "No Header" with "Output Field Names"
I/P file
<ATTRIBUTE NAME ="Header Options" VALUE ="No Header"/>
O/P needed
<ATTRIBUTE NAME ="Header Options" VALUE = "Output Field Names">
Through Sed..
sed 's/No Header../Output Filed Names"/' inputfile
through nawk
$ nawk '{sub(/No Header/,"Output Field Names")};1' infile
Hi michaelrozar17
Somehow
sed 's/No Header../Output Filed Names"/' input.txt >output.txt
is not working
There is nothing in output file
Do this:
Keep a copy of input.txt
sed -ie 's/No Header/Output Filed Names/g' input.txt
It will be changed in input.txt itself