]> git.saurik.com Git - redis.git/blame - deps/lua/test/table.lua
Merge remote-tracking branch 'origin/unstable' into unstable
[redis.git] / deps / lua / test / table.lua
CommitLineData
21d3294c 1-- make table, grouping all data for the same item
2-- input is 2 columns (item, data)
3
4local A
5while 1 do
6 local l=io.read()
7 if l==nil then break end
8 local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$')
9 if a~=A then A=a io.write("\n",a,":") end
10 io.write(" ",b)
11end
12io.write("\n")