is grep broken (4.2)

Carl Fongheiser cmf at cwruecmp.UUCP
Fri Aug 17 14:43:40 AEST 1984


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



More information about the Comp.unix mailing list