From owner-freebsd-questions Sun Dec 2 4:29:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by hub.freebsd.org (Postfix) with ESMTP id C07BA37B416 for ; Sun, 2 Dec 2001 04:29:31 -0800 (PST) Received: from trine (213-187-161-69.dd.nextgentel.com [213.187.161.69]) by mail.broadpark.no (Postfix) with ESMTP id B08747D7D for ; Sun, 2 Dec 2001 13:29:22 +0100 (MET) From: "Kjell" To: freebsd-questions@freebsd.org Date: Sun, 2 Dec 2001 12:35:44 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: ed in script Reply-To: kjell@la3sg.net Message-ID: <3C0A2020.10356.110DA70@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) 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 List members When I type in the following sequence: ==== ed /etc/motd 3 ,.$d i line 1 line 2 . w q ==== everything comes out as expected. When I save the following sequence in the file motdclean: ==== ed -s /etc/motd <