<html style="direction: ltr;">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0.2cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;" bidimailui-charset-is-forced="true"
bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 20/07/15 11:56, Orna Agmon
Ben-Yehuda wrote:<br>
</div>
<blockquote
cite="mid:CAA8-RXjkuQEPBjdQcrz_r1bgauTs-R6tHOXB0=nJfPVE20bDQQ@mail.gmail.com"
type="cite">
<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>
<div>Orna<br>
</div>
</div>
</blockquote>
<a class="moz-txt-link-freetext" href="http://debugmo.de/2009/04/bgrep-a-binary-grep/">http://debugmo.de/2009/04/bgrep-a-binary-grep/</a><br>
<br>
Shachar<br>
</body>
</html>