Search Results

Search: Posts Made By: RishiPahuja
2,970
Posted By RishiPahuja
I tried on solaris 5.8 and it gives me desired...
I tried on solaris 5.8 and it gives me desired output.

arfwsp04% sed '/^<TS>$/d; /^<\/TS>$/d'<l
<!DOCTYPE TS>
<context>
<name>CAction</name>
<message>
<source>Please wait. This may take...
2,970
Posted By RishiPahuja
assuming all instances of <TS> and </TS> will be...
assuming all instances of <TS> and </TS> will be on seperate lines, and we can delete complete lines containing this markers.

You can try this code.

sed '/^<TS>$/d; /^<\/TS>$/d' filename
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy