Re: replaceregex issues

2008-03-13 Thread Vihan Pandey
On 3/12/08, neo anderson <[EMAIL PROTECTED]> wrote: > > How do I use shell script in ant? I try the following code, but it does not > work. > > > > >(echo "hi!";) > > > > Though it return build successfully. But there is not

Re: replaceregex issues

2008-03-12 Thread neo anderson
tmp > $i; rm -rf $i.tmp;done) > > > > (for i in `find /path/to/my/files/ -name > \*.shtml -print`;do cat $i | sed s/[..\/]*http/http/g > $i.tmp; cat > $i.tmp > $i; rm -rf $i.tmp;done) > > > -- View this message in context

RE: replaceregex issues

2007-08-28 Thread Rebhan, Gilbert
Hi, -Original Message- From: Vihan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 4:35 PM To: Ant Users List Subject: Re: replaceregex issues > > > /* Thanks a million Gilbert !!! I REALLY appreciate all the effort you have taken in thinking of this and t

Re: replaceregex issues

2007-08-27 Thread Vihan Pandey
> > > Thanks a million Gilbert !!! I REALLY appreciate all the effort you have taken in thinking of this and testing it out :-) However i've noticed something strange that the replaceregex task fails in cretain(but not all) cases(if there are a VERY large number of files nested in a deep director

RE: replaceregex issues

2007-08-27 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 1:43 PM To: Ant Users List Subject: RE: replaceregex issues /* ok, tested now = works for me with ant 1.6.5 / jdk 1.4.2_08 */ typo, has to be = instead, the reference to the group

RE: replaceregex issues

2007-08-27 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 1:19 PM To: Ant Users List Subject: RE: replaceregex issues -Original Message- From: Vihan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 12:00 PM To: Ant Users

RE: replaceregex issues

2007-08-27 Thread Rebhan, Gilbert
Hi, -Original Message- From: Vihan Pandey [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 12:00 PM To: Ant Users List Subject: replaceregex issues /* ../http://web1.foo.com with http://web1.foo.com ../../http://web1.foo.com with http://web1.foo.com ../../../http://web1

replaceregex issues

2007-08-27 Thread Vihan Pandey
Hello, I have a rather strange issue while replacing strings from a set of files. My objective is to replace occurences of : ../http://web1.foo.com with http://web1.foo.com ../../http://web1.foo.com with http://web1.foo.com ../../../http://web1.foo.com with http://web1.foo.com and so on.