-
-
Save anonymous/807d625136651867194079eb9fa03093 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output = my_command_which_returns_string | |
lines = output.split(/\n/, -1) | |
names = lines.map{|str| str.split.last} | |
for name in names | |
puts "NAME = #{name}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment