Skip to Content.
Sympa Menu

baslinux - Re: [BL] Busybox sed

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: "Anthony Albert" <albert AT umpi.maine.edu>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Busybox sed
  • Date: Fri, 25 Nov 2005 11:17:48 -0500

On 25 Nov 2005 at 13:26, mikkel meinike wrote:
>Busybox sed will not doe what I want it to do. The normal sed can
>print all the text in a text file that exist from first appetence off
>"word A" until next appetence off "word B".
>like this:
>sed -e '/word A/,/word B/p' myfile.text > an_other_file.text
>
>so from file:
>car, woman, word A, elephant, house, dog, hotdog, word B, gymnastic, music.
>
>It will print:
>word A, elephant, house, dog, hotdog, word B
>
>1 Do you have a way to do that with busybox sed?
>2 Is there an other busybox tool that does that (what about busybox
>awk) and if yes how?
>3 Can I just install the real sed from /a3/bin.tgz ore will it
>conflict with the busybox sed?

I think it might just be a limitation in BusyBox's sed... most of the
'commands' in BusyBox are limited versions, and don't include all the
options. For example, I found I had to replace 'ls', to get all the
functionality that I wanted...

You can install the read sed from the .tgz, but you'll need to make
sure that you unlink all links to BusyBox from 'sed', first, or you'll
overwrite BusyBox - very bad!

Anthony Albert
===========================================================
Anthony J. Albert albert AT umpi.maine.edu
Systems and Software Support Specialist Postmaster
Computer Services - University of Maine, Presque Isle
"This is only temporary, unless it works."
--- Red Green






Archive powered by MHonArc 2.6.24.

Top of Page