Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 19 Feb 2004 19:32:22 -0500 (EST)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Reini Urban <rurban@x-ray.at>
cc: cygwin@cygwin.com
Subject: Re: search and replace tool
In-Reply-To: <40354B21.6040802@x-ray.at>
Message-ID: <Pine.GSO.4.56.0402191929000.22216@slinky.cs.nyu.edu>
References: <291592011.20040218205953@thequod.de> <6.0.1.1.0.20040218151724.0398d488@127.0.0.1> <40354B21.6040802@x-ray.at>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.39

On Fri, 20 Feb 2004, Reini Urban wrote:

> Larry Hall schrieb:
> > At 02:59 PM 2/18/2004, dAniel hAhler you wrote:
> >>I'm looking for a search and replace tool to replace a text portion in
> >>a bunch (3500+) of files.
> >>
> >>That should be an easy one.. :)
> >
> > This isn't really Cywgin-specific.  As a result, it's off-topic for this
> > list.
>
> But fixing perl's long-standing inability to do direct inline editing
> via perl -i would be cygwin specific.
> Anyone investigated this lately?

What on Earth are you talking about?  What inability?  WFM (see below).
	Igor

$ cygcheck -cd perl
Cygwin Package Information
Package              Version
perl                 5.8.2-1
$ ls
$ cat <<EOF > sometext
> blah
> blah and more blah
> still blah
> ok, done with blah
> EOF
$ ls
sometext
$ cat sometext
blah
blah and more blah
still blah
ok, done with blah
$ perl -i -pe 's/blah/stuff/g' sometext
$ ls
sometext  sometext.bak
$ cat sometext
stuff
stuff and more stuff
still stuff
ok, done with stuff
$

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

