delorie.com/archives/browse.cgi | search |
Message-ID: | <3B744A1F.1B1E41A4@cyberoptics.com> |
From: | Eric Rudd <rudd AT cyberoptics DOT com> |
Organization: | CyberOptics |
X-Mailer: | Mozilla 4.72 [en] (Win95; U) |
X-Accept-Language: | en,pdf |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | grep problem |
Lines: | 29 |
Date: | Fri, 10 Aug 2001 15:54:55 -0500 |
NNTP-Posting-Host: | 38.196.93.9 |
X-Trace: | client 997476896 38.196.93.9 (Fri, 10 Aug 2001 16:54:56 EDT) |
NNTP-Posting-Date: | Fri, 10 Aug 2001 16:54:56 EDT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I'm not sure whether this is a problem with gnu tools or a DJGPP port-related problem, but here goes: If I use grep v2.4 under Win95 like this grep "string" file it lists to the screen just fine. If I try to pipe it through "more" grep "string" file | more the DOS line terminators change to Unix line terminators, and the screen output is a mess. The same problem exists with file redirection; there it's fixable by using the sequence grep "string" file >tempfile utod tempfile more <tempfile del tempfile but that's a nuisance. I did a little digging in the grep source, but was unsuccessful in isolating the problem. -Eric Rudd rudd AT cyberoptics DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |