From owner-freebsd-questions Wed Jul 9 13:44:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA07348 for questions-outgoing; Wed, 9 Jul 1997 13:44:18 -0700 (PDT) Received: from entity.enta.net (entity.enta.net [194.207.36.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA07338 for ; Wed, 9 Jul 1997 13:44:14 -0700 (PDT) Received: from simat.simat.org (callisto.modem1.enta.net [194.207.132.2]) by entity.enta.net (8.8.5/8.7.3) with SMTP id VAA02452 for ; Wed, 9 Jul 1997 21:47:50 +0100 (BST) Message-ID: <33C3F7B9.5636@enta.net> Date: Wed, 09 Jul 1997 21:42:33 +0000 From: Simon N Atkin X-Mailer: Mozilla 3.01Gold (Win95; I) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: SED remove from live file Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Anyone know how to remove a certain string from a file without having the create a tmp file. i.e sed "s/\.//g" simat.dat strip all . 's from simat.dat if we use cat simat.dat | sed "s/\.//g" > simat.dat then we end up with simat.dat being empty and 0 bytes. There must be a nice way to do this without having to create a pooy tmp file. ?? erm ermy erm Simon saus man. :)