From owner-freebsd-questions Tue Nov 27 17:10:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from christel.heitec.net (christel.heitec.net [193.101.232.3]) by hub.freebsd.org (Postfix) with ESMTP id B689E37B405 for ; Tue, 27 Nov 2001 17:10:20 -0800 (PST) Received: from heitec.net (paladin.heitec.net [193.101.232.30]) by christel.heitec.net (Postfix) with ESMTP id 3EB7BB8101; Wed, 28 Nov 2001 02:10:19 +0100 (CET) Date: Wed, 28 Nov 2001 02:10:19 +0100 From: Bernd Luevelsmeyer X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Tony Cc: freebsd-questions@FreeBSD.org Subject: Re: removing last line References: <200111272155.NAA08579@idk.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20011128011019.3EB7BB8101@christel.heitec.net> 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 Tony wrote: > > I need a way of removing just the last line in a text file using a csh > script. > > Any ideas? sed -ne\$q -ep To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message