blob: 2bd8175d05c33bc32afc0683785df2b3dacf24b3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
yaml=require'yaml'
list={}
for line in io.stdin:lines() do
local m = {}
m.name=string.match(line, "http://([^/]+)")
m.urls = { line }
table.insert(list, m)
end
print(yaml.dump(list))
|