From owner-freebsd-questions Sun Jun 2 13:44:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from altair.mukappabeta.net (altair.mukappabeta.net [194.145.150.157]) by hub.freebsd.org (Postfix) with ESMTP id 5E59D37B405 for ; Sun, 2 Jun 2002 13:44:28 -0700 (PDT) Received: by altair.mukappabeta.net (Postfix, from userid 1001) id 6F2576C8; Sun, 2 Jun 2002 22:44:58 +0200 (CEST) Date: Sun, 2 Jun 2002 22:44:58 +0200 From: Matthias Buelow To: Benoit Lacherez Cc: Matthew Hunt , j mckitrick , freebsd-questions@FreeBSD.ORG Subject: Re: Why does 'sed' delete my input file? Message-ID: <20020602204458.GB699@altair.mukappabeta.net> References: <20020531130029.B28925@dogma.freebsd-uk.eu.org> <20020531141421.A72043@bisclavret.iris33.ac-bordeaux.f> <20020531132211.A29199@dogma.freebsd-uk.eu.org> <20020531094720.C34758@wopr.caltech.edu> <20020602205338.A22684@bisclavret> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020602205338.A22684@bisclavret> User-Agent: Mutt/1.3.28i 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 Benoit Lacherez writes: >You're right! I had never done that with a big file, but actually it >is truncated. So I'll do with a temporary file, now. if you want to do in-place editing, you can also use ed (the standard text editor) by giving it its commands on stdin. --mkb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message