Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 19th, 2018
98
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
##
# to_dokuwiki_table.rb
# convert tab-delimited text to dokuwiki table
file = ARGV[0]
File.open(file).each do |l|
a = l.chomp.split(/\t/)
puts "|" + a.map{|x| "#{x} "}.join("|") + "|"
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
2024-04-17_stats.json
JSON | 20 min ago | 4.10 KB
2024-04-17_stats.json
JSON | 22 min ago | 4.10 KB
2024-04-17_stats.json
JSON | 23 min ago | 4.07 KB
Whitelister
Lua | 25 min ago | 23.32 KB
Startup -- Turtle
Lua | 26 min ago | 1.28 KB
Untitled
R | 42 min ago | 2.90 KB
Startup -- Computer
Lua | 46 min ago | 0.96 KB
Test for #353
Bash | 49 min ago | 0.98 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!