Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ames!sdcsvax!nosc!humu!uhmanoa!uhccux!todd From: todd@uhccux.UUCP (The Perplexed Wiz) Newsgroups: comp.unix.questions Subject: Re: awk pattern matching Message-ID: <722@uhccux.UUCP> Date: Fri, 7-Aug-87 14:09:46 EDT Article-I.D.: uhccux.722 Posted: Fri Aug 7 14:09:46 1987 Date-Received: Sun, 9-Aug-87 04:30:33 EDT References: <1092@gilsys.UUCP> Reply-To: todd@uhccux.UUCP (The Perplexed Wiz) Organization: U. of Hawaii, Manoa (Honolulu) Lines: 21 Keywords: awk, patterns, matches In article <1092@gilsys.UUCP> mc68020@gilsys.UUCP (Thomas J Keller) writes: > > I am attempting to write a small awk script which will scan my sulog file >for attempts to su by any but a small list of user names. I can't seem to get >the thing to work. Have you tried egrep -v 'name1|name2|name3' sulog That seems to be the simplest way to solve your problem. ..todd -- Todd Ogasawara, U. of Hawaii Center for Teaching Excellence UUCP: {ihnp4,seismo,ucbvax,dcdwest}!sdcsvax!nosc!uhccux!todd ARPA: uhccux!todd@nosc.MIL INTERNET: todd@uhccux.UHCC.HAWAII.EDU