Skip to Content.
Sympa Menu

baslinux - Re: [BL] Busybox sed

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: mikkel meinike <mimeini AT gmail.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Busybox sed
  • Date: Sat, 26 Nov 2005 12:58:19 +0000

On 11/26/05, mikkel meinike <mimeini AT gmail.com> wrote:
> On 11/25/05, 3aoo-cvfd AT dea.spamcon.org <3aoo-cvfd AT dea.spamcon.org> wrote:

Yes now I have tried and I understand. Stevens Idea works fine if you
like in my ex. are on only one line. But it will not work if you are
on several lines:

car
woman
word A
elephant
house
dog
hotdog
word B
gymnastic
music.

But David suggestion to try with sed '/word A/,/word B/d' worked so
the only solution I could come with fore the problem is not elegant
but good enough for me:

echo "word A" > bbb.txt;
sed '1,/word A/d' aaa.txt | sed /word B/,100d >> bbb.txt;
echo "word B" >> bbb.txt

/Mikkel




Archive powered by MHonArc 2.6.24.

Top of Page