From owner-freebsd-questions Sat Jan 2 22:47:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA19400 for freebsd-questions-outgoing; Sat, 2 Jan 1999 22:47:58 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from wph.bbs.edu.cn ([203.93.18.139]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA19391 for ; Sat, 2 Jan 1999 22:47:52 -0800 (PST) (envelope-from peihanw@mx.cei.gov.cn) Received: from mx.cei.gov.cn (localhost [127.0.0.1]) by wph.bbs.edu.cn (8.8.8/8.8.7) with ESMTP id OAA00456 for ; Sun, 3 Jan 1999 14:48:59 +0800 (CST) (envelope-from peihanw@mx.cei.gov.cn) Message-ID: <368F12D7.5F793D50@mx.cei.gov.cn> Date: Sun, 03 Jan 1999 14:48:55 +0800 From: Peihan Wang X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 2.2.8-STABLE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: grep binary files under xterm Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am using CTMed 2.2.8 and X11R6 3.3.2. My window manager is lesstif-0.84. Under xterm, for example, When I do the following: /etc$ grep abcdefghijklmnop pwd.db /etc$ Because there is no string "abcdefghijklmnop" in file pwd.db, nothing happens. But if I do the following instead: /etc$ grep root pwd.db Since pwd.db must contains string "root", my xterm window becomes a mass. ASCII can not be displayed, all what I can see are strange characters. I also tried some binary files while using grep. If the file contains the searching string, xterm window becomes a mass. But this will not happen in console mode. How could I tune something to correct it ? Wang Peihan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message