darkrc/bin/find_files

9 lines
193 B
Lua
Executable file

#!/usr/bin/env lua
local buf = {}
for _, argument in ipairs{...} do
table.insert(buf, "-name '"..argument:gsub("'", [['"'"']]).."'")
end
os.execute("find . " .. table.concat(buf, " -or "))