From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Staniewicz To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010104024926.C82C1199DC@mail.cse.psu.edu> Subject: [9fans] sed Date: Thu, 4 Jan 2001 03:45:58 -0500 Topicbox-Message-UUID: 42e75d92-eac9-11e9-9e20-41e7f4b1d025 Is there a different way to do the following under Plan9? sed = file1|sed 'N;s/\n/\ /' >file2 or cat -n file1 >file2 Both would insert line numbers in file2 from file1. Sorry if this is a basic question. Bill