Re: sed awk question

From: David J. Weller-Fahy <dave-lists-aklug@weller-fahy.com>
Date: Fri Jun 11 2004 - 18:51:33 AKDT

* DENNIS BYRNE <asdcb1@uaa.alaska.edu> [2004-06-11 17:41 -0800]:
> 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/
> [snip]
>
> suggestions?

Maybe try the command 'split' (man 1 split)?

I've used that with success in the past. I believe the -p option is the
one that you'll want.

HTH,

-- 
dave [ please don't CC me ]
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Jun 11 18:48:02 2004

This archive was generated by hypermail 2.1.8 : Fri Jun 11 2004 - 18:48:02 AKDT