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 say, each of my 70 fils has i

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, / d > > and a other such. zip. % sed -e "1,//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, / d > > > > and a other

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, / d > > > > > > and a other such. zip. > > > > % sed -e "1,//d

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, / d > > > > and a other

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 > > > >