Add find_files command

This commit is contained in:
Talia 2023-02-18 22:03:28 +01:00
parent 20c3a5f094
commit 0491c5a263
1 changed files with 9 additions and 0 deletions

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 "))