From c55267d25654109002693810b04fdee8688d7d89 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Thu, 15 Dec 2022 09:47:40 +0100 Subject: [PATCH] [examples/rename] Yet more comment improvements. --- examples/rename.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/rename.lua b/examples/rename.lua index 2f8d1ab..5811e61 100755 --- a/examples/rename.lua +++ b/examples/rename.lua @@ -2,9 +2,12 @@ -- Basic mass file renamer using osx and -- standard Lua gsub(). -- --- Renames every file inside a directory. --- A trimmed down but functional and useful --- variant of util-linux rename(1) +-- Renames every file inside a directory (defaults to current directory). +-- Trimmed down but functional and useful variant of util-linux rename(1). +-- +-- Example uses: +-- lua rename.lua 'something' 'something_else' +-- lua rename.lua '(%w+).lua' '%1.lua.bk' src -- -- Author Lorenzo Cogotti, The DoubleFourteen Code Forge