From owner-freebsd-questions Sun Mar 16 0:22: 6 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A00C237B404 for ; Sun, 16 Mar 2003 00:22:04 -0800 (PST) Received: from rawfire.torche.com (rawfire.torche.com [166.88.255.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEB0F43F93 for ; Sun, 16 Mar 2003 00:22:03 -0800 (PST) (envelope-from freebsd@rawfire.torche.com) Received: from rawfire.torche.com (localhost.torche.com [127.0.0.1]) by rawfire.torche.com (8.12.5/8.11.6) with ESMTP id h2G8LRgt098689; Sun, 16 Mar 2003 00:21:27 -0800 (PST) (envelope-from freebsd@rawfire.torche.com) Received: from localhost (freebsd@localhost) by rawfire.torche.com (8.12.5/8.12.2/Submit) with ESMTP id h2G8LQrA098686; Sun, 16 Mar 2003 00:21:26 -0800 (PST) (envelope-from freebsd@rawfire.torche.com) Date: Sun, 16 Mar 2003 00:21:26 -0800 (PST) From: Chris P To: doug Cc: freebsd-questions@FreeBSD.ORG Subject: Re: csh question.. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 How about an example? I know only know sed for replacing things, not inserting a new line into a file in a specific place, even though the info around it changes. C. On Sun, 16 Mar 2003, doug wrote: > sed > > On Sat, 15 Mar 2003, Chris P wrote: > > > > > Hello.. > > Not really a freebsd question, but still a good forum to ask this. > > How would I insert a line into a file via a csh script. example... > > I have a file that is generated via the script, and I need to insert a > > line between line 1 and 2. I could do it via a head, or tail statement, > > and alot of steps, but I was wondering if there was an easier way to do > > it. > > > > Thanks! > > C. > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message