Guest User

Untitled

a guest
Jun 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. infile = ARGV[0]
  2. outfile = ""
  3. open(infile) {|f|
  4. f.to_a.each do |line|
  5. outfile += line.gsub(/\s+/, ",").chop + "\n"
  6. end
  7. }
  8.  
  9. puts outfile
Add Comment
Please, Sign In to add comment