Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!oliveb!sun!gorodish!guy From: guy@gorodish.Sun.COM (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: what should egrep '|root' /etc/passwd print? Message-ID: <68203@sun.uucp> Date: 14 Sep 88 03:00:41 GMT References: <44414@beno.seismo.CSS.GOV> Sender: news@sun.uucp Lines: 11 > What should > egrep '|root' /etc/passwd > print? (Presume you have one and only one line containing the string > root in /etc/passwd). > > On BSD systems, it prints the single line containing root. On > System 5 systems it prints EVERY line. I tried it on a 3B2 running S5R3.1 here, and it printed only the line containing "root". Perhaps somebody "improved" the "egrep" on the S5 system in question?