From ventrue.yahoo.com!jfriedl Wed Aug 27 21:37:35 1997 Return-Path: Received: by leibniz.math.fu-berlin.de (Smail3.2) from mailhost.yahoo.com (205.216.162.34) with esmtp id ; Wed, 27 Aug 1997 21:37:32 +0200 (MET DST) Received: from ventrue.yahoo.com (ventrue.yahoo.com [205.216.162.95]) by mailhost.yahoo.com (8.8.6/8.8.6) with ESMTP id MAA22086; Wed, 27 Aug 1997 12:37:27 -0700 (PDT) Received: (from jfriedl@localhost) by ventrue.yahoo.com (8.8.6/8.8.6) id MAA16020; Wed, 27 Aug 1997 12:37:17 -0700 (PDT) Date: Wed, 27 Aug 1997 12:37:17 -0700 (PDT) From: Jeffrey Friedl Message-Id: <199708271937.MAA16020@ventrue.yahoo.com> To: guckes@math.fu-berlin.de CC: eli@NetUSA.Net, lvovk@opsny.csfb.com In-reply-to: Subject: Re: SED shorthand for span of characters in replacement string Reply-to: Jeffrey Friedl Status: RO Content-Length: 948 Lines: 21 Sven Guckes wrote: |> > Does anyone know the equivalent of the sed shorthand for span of |> > characters to be used in the replacement portion of the substitution |> > command rather than in the pattern. [eg] replace one A with 100 A's |> > without writing out a replacement string of A 100 times? I want |> > something like "s/^A/A\{100\}/". |> |> You cannot use "ranges" in the substitute pattern (I think). |> Or can you? Paging Eli the Bearded and Jeffrey "MRE" Friedl. (Sorry for the delay) I don't know of any sed that allows that, sorry. It's a bummer, but you'll have to type the whole thing out. Jeffrey ---------------------------------------------------------------------------- Jeffrey Friedl Yahoo! Finance http://quote.yahoo.com See my Jap<->Eng dictionary at http://www.wg.omron.co.jp/cgi-bin/j-e O'Reilly's Regular Expression book: http://enterprise.ic.gc.ca/~jfriedl/regex/