[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed - problem parsing binary-file

From: Eli Zaretskii
Subject: Re: sed - problem parsing binary-file
Date: Sun, 28 Jan 2001 08:54:38 +0200 (IST)

On Fri, 26 Jan 2001, BOERINGER,HEIKO (HP-Germany,ex1) wrote:

> On parsing the attached binary-file 'nsreg.dat' with the command
> 'sed.exe nsreg.dat -e s/k:\\mdecfg/h:\\mdecfg/i'
> sed (for win32) breaks parsing on offset 00001660h. Is there a bug in =
> sed?

It is a bad idea to use Sed with binary files on non-Unix systems, 
because most ports of Sed to DOS/Windows use text-mode  reads.  Text-mode 
reads are terminated whenever the first ^Z character is seen in the 
input file, because ^Z is a kind of ``software EOF'' character.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]