<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">can you provide a example of a bad lines and how do you like them to look like after you fix them ? <br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><font size="1"><span style="font-family:courier new,monospace">--<br>Rabin<br></span></font></div></div></div>
<br><div class="gmail_quote">On Mon, Jul 20, 2015 at 11:56 AM, Orna Agmon Ben-Yehuda <span dir="ltr"><<a href="mailto:ladypine@gmail.com" target="_blank">ladypine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I often have damaged text files (due to a lovely storage system). The files are of different formats, although I can usually assume they contain spaces. The files are structured as lines.</div><div><br></div><div>Every once in a while, the lovely destruction (ahm....storage) system inserts binary garbage to the file. I wish to fix the files by removing the cancer without leaving any leftovers. That is, I want to lose partial lines.</div><div><br></div><div>I tried using grep with all sorts of keys, but it did not do the trick.</div><div>strings catches too little - it leaves partial lines.</div><div>Is there an elegant way to do the trick line-wise?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Orna<br clear="all"><div><br></div>-- <br><div>Orna Agmon Ben-Yehuda.<br><a href="http://ladypine.org" target="_blank">http://ladypine.org</a></div>
</div></font></span></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>