cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: UWin / CygWin and odd Characters

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Feb 2003 08:18:46 +0100 (CET)

On Sun, 2 Feb 2003, Nathan Ziarek wrote:

> When downloading html files with CygWin, there are boxes in place of line
> breaks. I tried to select them to manually enter the line breaks with sed
> (sed 's/BOX_THING/LINEBREAK/' etc...) but it faults if not escaped, and
> does nothing if it is escaped. Any ideas on why this works like this / how
> I can fix it?

The "boxes" you see are probably CR characters (bytecode decimal 13).

To strip them off a downloaded file, I would use the 'tr' command similar to
this:

        curl [URL] | tr -d '\015' > dump

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-02-03