grep replacement

Harald Schaefer hasch at gypsy.siemens-rtl
Wed Jun 1 13:53:56 AEST 1988


If you are only interested in the first occurence of a pattern, you can use
something like
	sed -n '/<pattern>/ {
		p
		q
		}' file
Harald Schaefer
Siemens Corp. - RTL
Bus. Phone (609) 734 3389
Home Phone (609) 275 1356

uucp:	...!princeton!gypsy!hasch
	hasch at gypsy.uucp
ARPA:	hasch at siemems.com
	hasch%siemens at princeton.EDU



More information about the Comp.unix.wizards mailing list