darkrc/bin/find_files

10 lines
193 B
Text
Raw Normal View History

2023-02-18 21:03:28 +00:00
#!/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 "))