From 02b48d1d8ef904a229a92e2bfea62e61398cb1d7 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 3 Apr 2014 23:57:40 +0200 Subject: [PATCH] Clarifies more the use of % in log names. --- snapraid.1 | 6 +++--- snapraid.d | 6 +++--- snapraid.txt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/snapraid.1 b/snapraid.1 index f8601049..3d2374cd 100644 --- a/snapraid.1 +++ b/snapraid.1 @@ -828,9 +828,9 @@ output. If the specified path starts with \'>>\' the file is opened in append mode. Occurrences of \'%D\' and \'%T\' in the name are replaced with the date and time in the format YYYYMMDD and -HHMMSS. Note that likely you have to use \[dq] around the name -containing these special chars to avoid to have them -interpreted by the command shell, like \[dq]>>test\-%D.log\[dq]. +HHMMSS. Note that in Windows batch files, you\'ll have to double +the \'%\' char, like result\-%%D.log. And to use \'>>\' you\'ll have +to enclose the name in \[dq], like \[dq]>>result.log\[dq]. .TP .B \-s, \-\-start BLKSTART Starts the processing from the specified diff --git a/snapraid.d b/snapraid.d index c8114ae9..f4221c8c 100644 --- a/snapraid.d +++ b/snapraid.d @@ -594,9 +594,9 @@ Options If the specified path starts with '>>' the file is opened in append mode. Occurrences of '%D' and '%T' in the name are replaced with the date and time in the format YYYYMMDD and - HHMMSS. Note that likely you have to use " around the name - containing these special chars to avoid to have them - interpreted by the command shell, like ">>test-%D.log". + HHMMSS. Note that in Windows batch files, you'll have to double + the '%' char, like result-%%D.log. And to use '>>' you'll have + to enclose the name in ", like ">>result.log". -s, --start BLKSTART Starts the processing from the specified diff --git a/snapraid.txt b/snapraid.txt index e3070779..6ac8a2fe 100644 --- a/snapraid.txt +++ b/snapraid.txt @@ -639,9 +639,9 @@ SnapRAID provides the following options: If the specified path starts with '>>' the file is opened in append mode. Occurrences of '%D' and '%T' in the name are replaced with the date and time in the format YYYYMMDD and - HHMMSS. Note that likely you have to use " around the name - containing these special chars to avoid to have them - interpreted by the command shell, like ">>test-%D.log". + HHMMSS. Note that in Windows batch files, you'll have to double + the '%' char, like result-%%D.log. And to use '>>' you'll have + to enclose the name in ", like ">>result.log". -s, --start BLKSTART Starts the processing from the specified