Date: Tue, 22 Apr 2003 12:58:44 +0200 From: Simon Barner <barner@in.tum.de> To: CARTER Anthony <a.carter@cordis.lu> Cc: freebsd-questions@freebsd.org Subject: Re: silly question but can't think... Message-ID: <20030422105844.GA8073@zi025.glhnet.mhn.de> In-Reply-To: <200304221045.57211.a.carter@intrasoft.lu> References: <200304221045.57211.a.carter@intrasoft.lu>
next in thread | previous in thread | raw e-mail | index | archive | help
--zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Want to remove /ORGNAME/ for that file and pipe back out to a file, same or > otherwise... Assuming that the file is called my.file, you can do the following: perl -pi -e "s/ORGNAME//g" my.file ^ you can put a string of your choice here. This command will work directly on the file. For details see the perlre(1) and perlrun(1) man pages. HTH, Simon --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+pSBkCkn+/eutqCoRArntAKDvq9kk1GygPDMYAlTSKU5QbUeU1gCfehyg QLLVVrAdaUWSdwbt6y6+Z0E= =4Y5z -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030422105844.GA8073>