rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Tim.Goodwin@pipex.net
To: bk@analytikerna.se
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: Simple ' question
Date: Tue, 25 May 1993 09:41:00 -0400	[thread overview]
Message-ID: <"relay.pipe.070:25.04.93.13.45.42"@pipex.net> (raw)

> 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.


             reply	other threads:[~1993-05-25 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-25 13:41 Tim.Goodwin [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-05-25 15:22 Alan Watson
1993-05-25 13:51 Alan Watson
1993-05-25 13:48 rsalz
1993-05-25 13:33 Bengt KLEBERG

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='"relay.pipe.070:25.04.93.13.45.42"@pipex.net' \
    --to=tim.goodwin@pipex.net \
    --cc=bk@analytikerna.se \
    --cc=rc@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).