Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 13th, 2016
122
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
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
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Method to get 13,000$ in 2 days
CSS | 15 min ago | 0.91 KB
Crypto Exploit
CSS | 15 min ago | 0.91 KB
kube-prometheus-stack_servicecluster
YAML | 1 hour ago | 3.59 KB
Untitled
3 hours ago | 7.99 KB
Untitled
5 hours ago | 9.10 KB
Hytale Update 2 – Patch Notes (Pre-Release)
7 hours ago | 3.27 KB
Untitled
7 hours ago | 8.87 KB
Untitled
9 hours ago | 27.63 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!