From bb12c1fd00eb51118749bbbc69c5596835fcbd3b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 19:31:02 +0200 Subject: Adding upstream version 5:7.0.15. Signed-off-by: Daniel Baumann --- deps/lua/test/table.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deps/lua/test/table.lua (limited to 'deps/lua/test/table.lua') diff --git a/deps/lua/test/table.lua b/deps/lua/test/table.lua new file mode 100644 index 0000000..235089c --- /dev/null +++ b/deps/lua/test/table.lua @@ -0,0 +1,12 @@ +-- make table, grouping all data for the same item +-- input is 2 columns (item, data) + +local A +while 1 do + local l=io.read() + if l==nil then break end + local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)$') + if a~=A then A=a io.write("\n",a,":") end + io.write(" ",b) +end +io.write("\n") -- cgit v1.2.3