diff --git a/bin/find_files b/bin/find_files new file mode 100755 index 0000000..79647cf --- /dev/null +++ b/bin/find_files @@ -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 "))