.  Then we'd need to know the input to come up

Hi , the output is coming from a router

and the output has too much rough data , thats why i was using BAck tick 
..
example

spawn

--- JUNOS xxxxx  built 2012-03-17 18:55:36 UTC
{master:10

--- JUNOS xxxxxbuilt 2012-03-17 18:55:36 UTC
{master:10}

syntax error, expecting <command>.
 configure systemconsole
                                      ^
syntax error, expecting <command>.

{master:10
set output

xe-0/0/2.0              up    up   aenet    --> ae1.0
xe-0/0/3                up    up
xe-0/0/3.0              up    up   aenet    --> ae1.0

xe-10/0/6.0             up    down aenet    --> ae40.0
xe-24/0/3.0             up    down aenet    --> ae30.0

then......................

what i am after is like
xe-10/0/6.0             up    down aenet    --> ae40.0


Thanks  for your help

-- 
Posted via http://www.ruby-forum.com/.