From owner-freebsd-questions Sat Mar 15 23:41:48 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 1D40D37B401 for ; Sat, 15 Mar 2003 23:41:47 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8E8243F85 for ; Sat, 15 Mar 2003 23:41:45 -0800 (PST) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.8/8.12.8) with ESMTP id h2G7fhjJ091969; Sun, 16 Mar 2003 02:41:43 -0500 (EST) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.12.8/8.12.8/Submit) with SMTP id h2G7fdtx091966; Sun, 16 Mar 2003 02:41:43 -0500 (EST) Date: Sun, 16 Mar 2003 02:41:38 -0500 (EST) From: doug To: Chris P 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 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