There are indeed commands in Ruby to do what you are looking to do.
Suggest you look through the Ruby Rdocs or post to a Ruby group.

http://ruby-doc.org/core/

Look at the grep command and the fileutils.

If you need your test to do something outside of the browser you
need to spend some effort and learn Ruby.

On Nov 8, 12:14 am, Chandu80 <[email protected]> wrote:
> Hello All,
> I want to write a script by which I can open up a text file,scan
> through it,find the line which contains the word 'test_site',get the
> IP address corresponding to that word, replace that IP with another IP
> address and then save and close the file.
> Are there any commands in Ruby to identify IP address from a string?
>
> Thanks in advance
>
> Regards
> Chandrika

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to