From owner-freebsd-questions Wed Jan 23 15:13: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from neurosoft.org (dsl-64-129-138-49.telocity.com [64.129.138.49]) by hub.freebsd.org (Postfix) with ESMTP id F276037B402 for ; Wed, 23 Jan 2002 15:13:02 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by neurosoft.org (8.11.6/8.11.6) with ESMTP id g0NNMcG52814 for ; Wed, 23 Jan 2002 17:22:38 -0600 (CST) (envelope-from zach@neurosoft.org) Subject: Sed compatibility with GNU Sed From: Zach Garner To: freebsd-questions@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Jan 2002 17:22:38 -0600 Message-Id: <1011828158.44952.4.camel@minsky.zachgarner.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In GNU Sed (textproc/gsed), I can execute the following command which will insert "asdf" on the first line of the contents of file foo: gsed -e '1i\' -e 'asdf'