Eliminating binary from a text file

Eliminating binary from a text file

Orna Agmon Ben-Yehuda ladypine at gmail.com
Tue Jul 21 12:08:36 IDT 2015


Amos, we have a winner!!! Exactly what I looked for!
Thanks
Orna

On Tue, Jul 21, 2015 at 7:53 AM, Amos Shapira <amos.shapira at gmail.com>
wrote:

> Then how about:
>
> "grep -v -P -a '\x00' file"?
>
> Based on http://superuser.com/a/612336/27453. Explantion of the flags:
>
> -v - inverse - print NON-matching lines
> -P - use Perl regexp
> -a - force treating the file as a text file
>
> On 21 July 2015 at 13:39, Shachar Shemesh <shachar at shemesh.biz> wrote:
>
>>  On 21/07/15 00:22, Boruch Baum wrote:
>>
>> I see that I'm late to the discussion and that your original problem has
>> morphed a bit. Maybe the simplest and oldest solution is the `tr -d'
>> command. See `man tr'.
>>
>>
>>  Read the original question again. She needs to eliminate the entire line
>> where a corruption happened, not just the corrupt bytes themselves.
>>
>> Shachar
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
>
> --
> <http://au.linkedin.com/in/gliderflyer>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>


-- 
Orna Agmon Ben-Yehuda.
http://ladypine.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20150721/d49b1d3e/attachment.html>


More information about the Linux-il mailing list