Add find_files command

This commit is contained in:
Talia 2023-02-18 22:03:28 +01:00
parent 20c3a5f094
commit 0491c5a263

9
bin/find_files Executable file
View file

@ -0,0 +1,9 @@
#!/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 "))