Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!ll-xn!ames!amdahl!apple!han From: han@Apple.COM (Byron Han, Licensed To Dream) Newsgroups: comp.sys.mac.programmer Subject: Re: Grep for MPW Keywords: mpw, grep, multi-file search Message-ID: <10936@apple.Apple.Com> Date: 23 May 88 19:07:49 GMT References: <2511@mit-amt.MEDIA.MIT.EDU> Reply-To: han@apple.UUCP (Byron Han, Licensed To Dream) Organization: Communications Product Development - Apple Computer, Inc. Lines: 24 In article <2511@mit-amt.MEDIA.MIT.EDU> phil@mit-amt.MEDIA.MIT.EDU (Phil Sohn) writes: > >Does anyone have a mutliple file search program for >MPW (i.e. Unix grep)? Try "search" Search [-s | -i] [-r] [-q] [-f file] pattern [file] < file > found -f file # lines not written to output are put in this file -i # case insensitive search (overriding {CaseSensitive}) -s # case sensitive search (overriding {CaseSensitive}) -r # write non-matching line to standard output -q # suppress file name and line number in output In "{MPW}UserStartup" I added the lines alias grep search export grep ----- -- Byron Han, Licensed to Dream. Macintosh - One Small Step For Apple. Apple Computer, Inc. MS 27Y ----One Giant Leap for Humankind.---- ATTnet:408-973-6450 applelink:HAN1 domain:han@apple.COM MacNET:HAN GENIE:BYRONHAN COMPUSERVE:72167,1664 UUCP:{sun,voder,nsc,decwrl}!apple!han