Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 beta 3/9/83; site cwruecmp.UUCP
Path: utzoo!linus!decvax!cwruecmp!cmf
From: cmf@cwruecmp.UUCP (Carl Fongheiser)
Newsgroups: net.unix
Subject: Re: is grep broken (4.2)
Message-ID: <1188@cwruecmp.UUCP>
Date: Fri, 17-Aug-84 00:43:40 EDT
Article-I.D.: cwruecmp.1188
Posted: Fri Aug 17 00:43:40 1984
Date-Received: Sun, 19-Aug-84 12:21:58 EDT
References: <14@harvard.ARPA>
Organization: CWRU Computer Engr. Cleveland, Ohio
Lines: 10

Well, one other way to make sure you match only 5-character words is
to say something like this:

	grep '^am.le$' /usr/dict/words

This makes sure the string matching the pattern starts at the beginning of
the line, and ends on the end of the line.

			Carl Fongheiser
			...!decvax!cwruecmp!cmf