From 1c4d67202a5a4ed325c40bef8cf519c52034f33b Mon Sep 17 00:00:00 2001 From: fabh2o Date: Tue, 9 Feb 2021 20:49:12 +0100 Subject: [PATCH] fix space --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7d9fc0e..86b47a8 100644 --- a/README.md +++ b/README.md @@ -126,11 +126,13 @@ The following flags can modify the default naming scheme: * **--dir-naming-scheme** * **--file-naming-scheme** * **--chapter-naming-scheme** + Each flag takes a string as argument. If the string contains a variable defined in the script (eg. artist, title, chapter, narrator...), the corresponding value is used. The default options correspond to the following flags: * `--dir-naming-scheme '$genre/$artist/$title'` * `--file-naming-scheme '$title'` * `--chapter-naming-scheme '$title-$(printf %0${#chaptercount}d $chapternum) $chapter'` + * If a command substitution is present in the passed string, (for example `$(printf %0${#chaptercount}d $chapternum)`, used to pad with zeros the chapter number), the commands are executed. So you can use `--dir-naming-scheme '$(date +%Y)/$artist'`, but using `--file-naming-scheme '$(rm -rf /)'` is a really bad idea. Be careful. * You can use basic text, like `--dir-naming-scheme 'Converted/$title'`