Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!yale!cmcl2!philabs!micomvax!musocs!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP Newsgroups: comp.lang.c Subject: Re: ignore case option for grep Message-ID: <707@mcgill-vision.UUCP> Date: Tue, 24-Mar-87 21:01:41 EST Article-I.D.: mcgill-v.707 Posted: Tue Mar 24 21:01:41 1987 Date-Received: Sat, 28-Mar-87 16:07:30 EST References: <745@pedsgo.UUCP> Distribution: na Organization: McGill University, Montreal Lines: 27 In article <745@pedsgo.UUCP>, chip@pedsgo.UUCP writes: > [about an ignore-case option to grep] > $ diff grep.c grep.c.old > [diff follows] In article <746@pedsgo.UUCP>, chip@pedsgo.UUCP writes: > Please ignore my last posting about grep. I totally forgot about > '-i' for ignoring case in searches. Talk about RTFM!!!!! Actually, how about trying it too? On my system, and therefore probably on most BSD systems, -i works only for fgrep and grep, not egrep, which is easily the most useful of the three (fastest, accepts the most general expressions, etc). Yes, even for fixed strings, in my experience egrep is much faster than fgrep (and grep). I will probably write something for VAXen using the matchc instruction, so the (presumably tuned) microcode does the searching. If I do and it turns out to be usefully fast, I will probably submit it for consideration for mod.sources. der Mouse Smart mailers: mouse@mcgill-vision.uucp USA: {ihnp4,decvax,akgua,utzoo,etc}!utcsri!musocs!mcgill-vision!mouse think!mosart!mcgill-vision!mouse ARPAnet: think!mosart!mcgill-vision!mouse@harvard.harvard.edu