Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAEHwtJ4021521 for ; Sun, 14 Nov 2004 17:58:55 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 8394B53DE6 for ; Sun, 14 Nov 2004 17:58:59 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTOn6-00078u-Mu for migo@homemail.com; Sun, 14 Nov 2004 13:07:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CTOmh-00078l-PV for gnu-arch-users@gnu.org; Sun, 14 Nov 2004 13:07:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CTOmh-00078R-4C for gnu-arch-users@gnu.org; Sun, 14 Nov 2004 13:07:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CTOmh-00078H-12 for gnu-arch-users@gnu.org; Sun, 14 Nov 2004 13:07:31 -0500 Received: from [129.255.60.186] (helo=ct.radiology.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CTOdv-00069G-Cf for gnu-arch-users@gnu.org; Sun, 14 Nov 2004 12:58:27 -0500 Received: from [192.168.1.11] (12-217-241-0.client.mchsi.com [12.217.241.0]) by ct.radiology.uiowa.edu (8.11.6/8.11.6) with ESMTP id iAEHwO324600; Sun, 14 Nov 2004 11:58:24 -0600 Message-ID: <41979CB9.2040505@arbash-meinel.com> Date: Sun, 14 Nov 2004 11:58:17 -0600 From: John Meinel User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zenaan Harkness Subject: Re: [Gnu-arch-users] new version hook script examples References: <1096079213.3761.169.camel@whiskas.cashpoolcomps.com> <20040925174731.GB26602@stig.vm.bytemark.co.uk> <1096157610.25824.3.camel@whiskas.cashpoolcomps.com> <20040926002248.GA19343@suffields.me.uk> <1096158785.25824.14.camel@whiskas.cashpoolcomps.com> <1100057346.4185.135.camel@localhost.localdomain> In-Reply-To: <1100057346.4185.135.camel@localhost.localdomain> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Cc: arch X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1006091991==" Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 2023 Lines: 74 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1006091991== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2459EC83D2C49D0D1D892C1B" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2459EC83D2C49D0D1D892C1B Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Zenaan Harkness wrote: > > BTW, does anyone know/ use an alternative to perl -i for in-place > munging? I guess I should learn how to chain multiple lines such as the > following into one, since firing up perl for each line seems rather > heavy weight. > > perl -pi -e "s#SUB_WEB_HOST#$SUB_WEB_HOST#g;" $SED_FILES > perl -pi -e "s#SUB_server.host#$SUB_server_host#g;" $SED_FILES > ... > > ?? > > tia > zen > Actually, perl doesn't actually do in-place munging. If you notice, it creates .bak files, so really perl is doing: mv $FILE $FILE.bak perl $FILE.bak > $FILE (maybe doing rm $FILE.bak) I don't really see why you couldn't do this in your own scripts. John =:-> --------------enig2459EC83D2C49D0D1D892C1B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBl5y5JdeBCYSNAAMRAqK2AJ9SdLR6S0b76sPfWSzasHhEhiGc5QCfZa+M C0wOb8LMvvfryS4afb0SWrw= =tjdL -----END PGP SIGNATURE----- --------------enig2459EC83D2C49D0D1D892C1B-- --===============1006091991== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/ --===============1006091991==--