sed - remove nul lines from file

Tim Daneliuk tundra at
Tue Nov 7 17:46:21 UTC 2017

On 11/07/2017 11:12 AM, James B. Byrne via freebsd-questions wrote:
> I have a data file created by an ancient proprietary scripting
> language called QTP.  There is a bug in this program which, on
> occasion, manifests itself by inserting output records consisting
> entirely of nul (^@) (\x00) bytes at regular intervals.  In the
> present case every 47th. record consists entirely of nuls.

I don't have the magic off the top of my head, but this might be a good
job for 'tr'...

Tim Daneliuk     tundra at
PGP Key:

More information about the freebsd-questions mailing list