Received: from spf3.us4.outblaze.com (spf3.us4.outblaze.com [205.158.62.25]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAA8PVXs022520 for ; Wed, 10 Nov 2004 08:25:31 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf3.us4.outblaze.com (Postfix) with ESMTP id 3B40753FA7 for ; Wed, 10 Nov 2004 08:24:30 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRnuj-0008PY-DL for migo@homemail.com; Wed, 10 Nov 2004 03:33:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CRnuE-0008NT-0m for gnu-arch-users@gnu.org; Wed, 10 Nov 2004 03:32:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CRnuD-0008Mo-Gv for gnu-arch-users@gnu.org; Wed, 10 Nov 2004 03:32:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRnuC-0008MN-Jv for gnu-arch-users@gnu.org; Wed, 10 Nov 2004 03:32:41 -0500 Received: from [192.94.73.20] (helo=sdf.lonestar.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CRnlW-0008Ry-Lo for gnu-arch-users@gnu.org; Wed, 10 Nov 2004 03:23:42 -0500 Received: from sdf.lonestar.org (IDENT:migo@ukato.freeshell.org [192.94.73.7]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iAA8NSXs019668 for ; Wed, 10 Nov 2004 08:23:30 GMT Received: (from migo@localhost) by sdf.lonestar.org (8.12.10/8.12.8/Submit) id iAA8NSXS024937 for gnu-arch-users@gnu.org; Wed, 10 Nov 2004 08:23:28 GMT Date: Wed, 10 Nov 2004 08:23:27 +0000 From: Mikhael Goikhman To: gnu-arch-users@gnu.org Subject: Re: [Gnu-arch-users] new version hook script examples Message-ID: <20041110082327.GB29726@SDF.LONESTAR.ORG> Mail-Followup-To: gnu-arch-users@gnu.org 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> <20041110075432.GB14218@stig.vm.bytemark.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041110075432.GB14218@stig.vm.bytemark.co.uk> User-Agent: Mutt/1.4.2.1i 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: , 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: 637 Lines: 23 On 10 Nov 2004 07:54:32 +0000, Stig Brautaset wrote: > > Just use the -e flag several times... > > perl -e "..." -e "..." I would not suggest this for newbies, this joins the "..." strings using a newline, so one should still end the statements with a semicolon. Just use a single -s and any whitespace (including newlines) you like: perl -pi -e 's/old1/new1/g; s/old2/new2/gi;' file1 file2 Regards, Mikhael. _______________________________________________ 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/