Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
var output = `ls` # `output` is a string
|
||||
var lines = `ls`.lines # `lines` is an array
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
var pipe = %p(ls) # same as: Pipe('ls')
|
||||
var pipe_h = pipe.open_r # open the pipe for reading
|
||||
var lines = [] # will store the lines of the output
|
||||
pipe_h.each { |line| lines << line }
|
||||
Loading…
Add table
Add a link
Reference in a new issue