Date: Wed, 09 Jul 1997 21:42:33 +0000 From: Simon N Atkin <simat@enta.net> To: freebsd-questions@freebsd.org Subject: SED remove from live file Message-ID: <33C3F7B9.5636@enta.net>
next in thread | raw e-mail | index | archive | help
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. :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33C3F7B9.5636>