sed awk question

From: DENNIS BYRNE <asdcb1@uaa.alaska.edu>
Date: Fri Jun 11 2004 - 17:39:07 AKDT

let's say I have a file.

BOFa\nb'pattern'd\ne'pattern'y\nzEOF

I want to spilt this file at 'pattern', using something like :
cat filename | sed s/'pattern'/EOF/
to get three files:

BOFa\nbEOF
BOFd\neEOF
BOFy\nzEOF

suggestions?

Dennis Byrne

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Jun 11 17:37:38 2004

This archive was generated by hypermail 2.1.8 : Fri Jun 11 2004 - 17:37:39 AKDT