Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2006 17:27:53 -0700
From:      Gary Kline <kline@tao.thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: qauestion using ed.
Message-ID:  <20060803002753.GA21663@thought.org>
In-Reply-To: <20060802235903.GA84728@alexis.mi.celestial.com>
References:  <20060802230830.GA20799@thought.org> <20060802235903.GA84728@alexis.mi.celestial.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 02, 2006 at 04:59:03PM -0700, Bill Campbell wrote:
> On Wed, Aug 02, 2006, Gary Kline wrote:
> >
> >	Guys,
> >
> >	How, pray tel, do I use ed to delete 23 lines?  I can find "foo"
> >	with /foo, but then .,20d or .,+20d or .,+20 d don't work.
> 
> .,.+20d
> 
> <dot><comma><dot>+20d
> 
> If you use the ``ex'' invocation of vi(m), ``20dd'' should do it.
> 
> Bill

	Thankee!  This works for most /patterns, but "<script...."
	gives me a bizarre err.  This is part of aa javascript cmd
	I'm  trying to get rid of.  I've simplified the /pattern to
	/<script type as below.   Still get the stuff to stderr.  
	Any idea what?  

	gary



-- 
   Gary Kline     kline@thought.org   www.thought.org     Public service Unix


for files in *.php
do
        echo $files
        /usr/bin/ex - $files <<\!

/<script type
.,.+10 d
.
w
q
!
done
sync;sync




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060803002753.GA21663>