sed used to remove a line from xml file
I have the following xml file where by i want to remove the following line from the file
This is what i have so far: Code:
file.xml I am using sed to remove the following line "<removeTxt value="1234567&2442_1==" />" from the file.xml Code:
|
:twocents:
Your syntax appears to be off. Also the backslash toward the end needs to be escaped or sed will read as a deliminator. I have escaped below,with a bold /. syntax sed -i '/regex/d' Quote:
|
I just want to remove the line that has the value "removeTxt value" from the xml file
the above solution is specify the exact line content how can i just remove aline that has "removeTxt value" from xml file? |
Quote:
Code:
sed '/removeTxt value/d' |
With the below i am getting
sed: -e expression #1, char 28: expected newer version of sed [code] sed 'removeTxt value/d' file.xml [\code] using GNU sed version 4.1.5 Any ideas ? |
Quote:
Code:
sed '/removeTxt value/d' file.xml |
Missing leading slash in the command above:
Code:
sed '/removeTxt value/d' file.xml |
All times are GMT -5. The time now is 02:49 AM. |