what should egrep '|root' /etc/passwd print?

Guy Harris guy at gorodish.Sun.COM
Wed Sep 14 13:00:41 AEST 1988


> 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?



More information about the Comp.unix.wizards mailing list