From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.pipex.net ([158.43.128.1]) by hawkwind.utcs.toronto.edu with SMTP id <2704>; Tue, 25 May 1993 09:46:38 -0400 Received: from pipex.net by relay.pipex.net with SMTP (PP) id <06065-0@relay.pipex.net>; Tue, 25 May 1993 14:45:29 +0100 To: bk@analytikerna.se Cc: rc@hawkwind.utcs.toronto.edu From: Tim.Goodwin@pipex.net Subject: Re: Simple ' question Date: Tue, 25 May 1993 09:41:00 -0400 Message-ID: <"relay.pipe.070:25.04.93.13.45.42"@pipex.net> > I would like to get this behaviour: > > sed '1 r filename' otherfile > > but with a $lineNumber instead of 1. How about this? sed $lineNumber^' r filename' otherfile (The caret operator is one of my favourite things about rc, especially when used with lists. There can't be many days go by that I don't say something like cat /tmp/^(foo bar qux) | whatever ) Tim.