Guest User

Untitled

a guest
Mar 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. ##
  2. # to_dokuwiki_table.rb
  3. # convert tab-delimited text to dokuwiki table
  4.  
  5. file = ARGV[0]
  6. File.open(file).each do |l|
  7. a = l.chomp.split(/\t/)
  8. puts "|" + a.map{|x| "#{x} "}.join("|") + "|"
  9. end
Add Comment
Please, Sign In to add comment