another beginner-type question.

2008-07-21 Thread Gary Kline
i could've saved myself a lot of work over the weekend if i have checked the php randizer file but i didn't. so now, while this isn't entirely essential, is there a way of using /bin/ed or /usr/bin/ex within in a /bin/sh file to delete to-and-including PATTERN say, each of my 70 fils has

Re: another beginner-type question.

2008-07-21 Thread David Kelly
On Mon, Jul 21, 2008 at 12:51:28PM -0700, Gary Kline wrote: i could do this kwik and dirty, and type in/fix any anomalies later, but it would be nice to know. I've already tried 1, /CENTER d and a other such. zip. % sed -e 1,/CENTER/d junk.in junk.out -- David Kelly N4HHE, [EMAIL

Re: another beginner-type question.

2008-07-21 Thread Gary Kline
On Mon, Jul 21, 2008 at 03:09:46PM -0500, David Kelly wrote: On Mon, Jul 21, 2008 at 12:51:28PM -0700, Gary Kline wrote: i could do this kwik and dirty, and type in/fix any anomalies later, but it would be nice to know. I've already tried 1, /CENTER d and a other such. zip.

Re: another beginner-type question.

2008-07-21 Thread David Kelly
On Mon, Jul 21, 2008 at 01:32:57PM -0700, Gary Kline wrote: On Mon, Jul 21, 2008 at 03:09:46PM -0500, David Kelly wrote: On Mon, Jul 21, 2008 at 12:51:28PM -0700, Gary Kline wrote: I've already tried 1, /CENTER d and a other such. zip. % sed -e 1,/CENTER/d junk.in

Re: another beginner-type question.

2008-07-21 Thread Gary Kline
On Mon, Jul 21, 2008 at 03:09:46PM -0500, David Kelly wrote: On Mon, Jul 21, 2008 at 12:51:28PM -0700, Gary Kline wrote: i could do this kwik and dirty, and type in/fix any anomalies later, but it would be nice to know. I've already tried 1, /CENTER d and a other such. zip.

Re: another beginner-type question.

2008-07-21 Thread Gary Kline
On Mon, Jul 21, 2008 at 04:13:53PM -0500, David Kelly wrote: On Mon, Jul 21, 2008 at 01:32:57PM -0700, Gary Kline wrote: On Mon, Jul 21, 2008 at 03:09:46PM -0500, David Kelly wrote: On Mon, Jul 21, 2008 at 12:51:28PM -0700, Gary Kline wrote: I've already tried 1, /CENTER d