Path: utzoo!utgpu!water!watmath!clyde!att!mtunx!rutgers!cmcl2!nrl-cmf!ames!decwrl!sun!gorodish!guy From: guy@gorodish.Sun.COM (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: grep replacement Message-ID: <55569@sun.uucp> Date: 7 Jun 88 17:26:36 GMT References: <7882@alice.UUCP> <2450011@hpsal2.HP.COM> <54818@sun.uucp> <8032@brl-smoke.ARPA> Sender: news@sun.uucp Lines: 17 > >7th Edition grep had a -h flag to not print the filenames on a grep. > >4BSD still has a -h flag. > >System 5 doesn't have a -h flag. > >(Another example of how System 5 is superior to BSD... and V7...) > > Maybe the AT&T folks figured that their customers were smart enough > to type "cat files ... | grep". *Which* "AT&T folks"? The folks at AT&T Bell Labs Research were the ones who put the "-h" flag into "grep" in the first place, *not* the ones at Berkeley. > I've never had the need for a -h flag, but I sure would like for the -H > (ALWAYS print filename) option to be the default instead of the current > variable algorithm. Maybe the AT&T folks figured that their customers were smart enough to type "grep ... /dev/null"?