Add find_files command
This commit is contained in:
parent
20c3a5f094
commit
0491c5a263
1 changed files with 9 additions and 0 deletions
9
bin/find_files
Executable file
9
bin/find_files
Executable 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 "))
|
Loading…
Reference in a new issue