Skip to Content.
Sympa Menu

baslinux - Re: [BL] Busybox sed

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: 3aoo-cvfd AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Busybox sed
  • Date: Sat, 26 Nov 2005 08:02:41 +1300

mikkel meinike wrote:
>
> 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?

sed 's/^.*word A/word A/' xxx.txt |sed 's/word B.*$/word B/'

Cheers,
Steven





Archive powered by MHonArc 2.6.24.

Top of Page