9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] sed
Date: Thu,  4 Jan 2001 18:39:39 +0000	[thread overview]
Message-ID: <20010104173610.CB6E6199D7@mail.cse.psu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 78 bytes --]

i always used:
	grep -n '^' file1 > file2

but that's just me, i guess.


[-- Attachment #2: Type: message/rfc822, Size: 1893 bytes --]

To: cse.psu.edu!9fans
Subject: Re: [9fans] sed
Date: Thu, 4 Jan 2001 09:21:58 -0800
Message-ID: <10101040921.ZM156152@marvin>

> Is there a different way to do the following under Plan9?
> 	sed = file1|sed 'N;s/\n/\	/' >file2
> 		or
> 	cat -n file1 >file2
Does
	awk '{print NR "\t" $0}' file1 >file2
not work?

             reply	other threads:[~2001-01-04 18:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-04 18:39 rog [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-01-04 18:10 rob pike
2001-01-04 17:58 nigel
2001-01-04 17:28 rob pike
2001-01-04  8:45 William Staniewicz
     [not found] ` <wstan@localhostnl.demon.nl>
2001-01-04 17:21   ` Tom Duff
2001-01-04  3:15 jmk
2001-01-04  2:51 rob pike

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=20010104173610.CB6E6199D7@mail.cse.psu.edu \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.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).