EG
join(filter(split(GetResult("ls"), '\n'), {_, x -> matchstr(x, "Scratch") == ""}), "\n")а на луа это как будет выглядеть?
lines = {}
for line in io.popen("ls -1"):lines() do
if not line:match("Scratch") then
table.insert(lines, line)
end
end

