Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- hosts=['qa1', 'qa2', 'qa3']
- ports=[111, 222, 333]
- hosts.each_with_index {
- |host, index|
- puts "#{host} #{index}"
- puts ports["#{index}"]
- }
- i want the output to be like
- qa1 111
- qa2 222
- qa3 333
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement