<div dir="ltr"><div><div>I've never run into this before, despite running Unix or Linux in my home continuously since about 1986.  I had a system freeze-up on Jan 31 from unknown causes.  The system affected is run as a computing server for a hobby project of mine.  I thought all was well, and that I was able to salvage the partial outputs of the jobs that were running.  I was wrong.<br><br></div>I now discover that some files that were under construction at that time are corrupted with extensive NUL bytes.  These are usually text files.  I want to find all such files and "cleanse" them to recover what information I can.  With just about anything _except_ a NUL byte this would be easy, but due to the special treatment of NUL in strings, it's not that clear to me how best to even search for those bytes.<br><br></div>Ideas?<br clear="all"><div><div><div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kevin O'Gorman<br></div>#define QUESTION ((bb) || (!bb))   /* Shakespeare */<br><br><div><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"></span></span><table width="448" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="25"><img src="cid:XVHDKDFDBURW.IMAGE_60.gif" width="25" height="21"></td>
<td width="423"><span style="FONT-FAMILY:Verdana,Geneva,sans-serif;COLOR:rgb(0,153,0);MARGIN-LEFT:5px;FONT-SIZE:10px">Please consider the environment before printing this email.</span></td></tr></tbody></table><br></div></div></div>
</div></div></div></div>