From owner-freebsd-questions@FreeBSD.ORG Tue Apr 22 03:58:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 452B037B401 for ; Tue, 22 Apr 2003 03:58:48 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51D2843FDD for ; Tue, 22 Apr 2003 03:58:47 -0700 (PDT) (envelope-from barner@in.tum.de) Received: from mailrelay1.informatik.tu-muenchen.de (mailrelay1.informatik.tu-muenchen.de [131.159.254.5]) by mailout.informatik.tu-muenchen.de (Postfix) with ESMTP id 7B02E6370; Tue, 22 Apr 2003 12:58:46 +0200 (MEST) Received: from mail.informatik.tu-muenchen.de (mail.informatik.tu-muenchen.de [131.159.0.26]) by mailrelay1.informatik.tu-muenchen.de (Postfix) with ESMTP id 5D2AB7943; Tue, 22 Apr 2003 12:58:46 +0200 (MEST) Received: from zi025.glhnet.mhn.de (unknown [129.187.19.157]) by mail.informatik.tu-muenchen.de (Postfix) with ESMTP id 4C7906CC33; Tue, 22 Apr 2003 12:58:46 +0200 (MEST) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id EE596373DC; Tue, 22 Apr 2003 12:58:44 +0200 (CEST) Date: Tue, 22 Apr 2003 12:58:44 +0200 From: Simon Barner To: CARTER Anthony Message-ID: <20030422105844.GA8073@zi025.glhnet.mhn.de> References: <200304221045.57211.a.carter@intrasoft.lu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: <200304221045.57211.a.carter@intrasoft.lu> User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: silly question but can't think... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 10:58:48 -0000 --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--