From: Randal L. Schwartz Date: Tue, 05 Dec 2006 19:45:50 GMT Subject: Re: Diffs from CVS keyword expansion Message-ID: <86k616m8i9.fsf@blue.stonehenge.com> In-Reply-To: <20061205121443.GB2428@cepheus> >>>>> "Uwe" == Uwe Kleine-Koenig writes: Uwe> #! /bin/sh Uwe> exec perl -i -p -e 's/\$(Id|Revision):.*?\$/\$$1: \$/' "$@"; Ow. My eyes hurt from that. How about we rewrite that as a native Perl script: #!/usr/bin/perl $^I = ""; # this is -i while (<>) { s/\$(Id|Revision):.*?\$/\$$1: \$/; print; } -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.