Date: Fri, 01 Jan 1999 22:51:13 -0800 From: Doug <Studded@san.rr.com> To: Peihan Wang <peihanw@mx.cei.gov.cn> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: grep binary files under xterm Message-ID: <368DC1E1.53F0DCF0@san.rr.com> References: <368F12D7.5F793D50@mx.cei.gov.cn>
next in thread | previous in thread | raw e-mail | index | archive | help
Peihan Wang wrote: > > 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 ? Don't grep binary files? I have the following in my .bashrc: alias grep='grep -a' hope this helps, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?368DC1E1.53F0DCF0>