if you want to remove a complete line from a text file, you ca also simply use grep,
ie
grep -v "some text" ....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129570\"][{POST_SNAPBACK}][/a][/div]
Hi Meanie,
I want to remove two lines of text, but only if the first one only contains " <ul>\n" and the second one only contains " </ul>\n". That can occur many times in the source file.
I found bbe, which is a stream editor similar to sed, but works on binary sequences.
I'll use that one I think, since the byte sequence is alweays the same, it can be handled nicely with bbe.
bbe compiled nicely on the Zaurus.
Seems to be a useful too,. I'll make an IPK soon.
There is another approach to solve this problem, because the source file is generated from an XML using XSLT. So if I find a way to prevent the XSLT to generate these empty <ul>s, this would be of course the more elegant solution.
But I have no clue how to do this. Have asked in some XML/XSLT forums. Maybe this will bring a working solution.
Thanks so far!
daniel