From 0491c5a263d3a8dcf76ca29fc81375d8bd1f8729 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Sat, 18 Feb 2023 22:03:28 +0100 Subject: [PATCH] Add find_files command --- bin/find_files | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/find_files 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 "))