From f6a06a9696442fa76cf19c31224b024c5d0666ef Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Mon, 19 Dec 2022 22:03:03 +0100 Subject: [PATCH] sequencer - addConf support for backslash escapes sequencer - new api function rmold to remove oldest files in a directory --- sequencer.sh | 83 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 73 insertions(+), 10 deletions(-) diff --git a/sequencer.sh b/sequencer.sh index d8a4585..84912e8 100755 --- a/sequencer.sh +++ b/sequencer.sh @@ -151,13 +151,13 @@ helpApi(){ sequencer.sh API The sequencer.sh build-in functions are available in all sequence functions: -- seq_config +- seq_config() If optional seq_config is defined in the sequence, it will be called once before execution of steps. -- step_[1-${_sqr_stepMax}]_info -- step_[1-${_sqr_stepMax}]_alias +- step_[1-${_sqr_stepMax}]_info() +- step_[1-${_sqr_stepMax}]_alias() - step_[1-${_sqr_stepMax}]_noconf= No need to call seq_config for this step. -- step_[1-${_sqr_stepMax}] +- step_[1-${_sqr_stepMax}]() sequencer.sh global variables: @@ -189,6 +189,7 @@ USAGE_API -a : append to existing file -s : skip if CONFIGFILE exists (no backup and entry in missing conf) -m : only add content to missing conf and warn user + -e : enable interpretation of backslash escapes (ignored for -f) -f : is a file Text or file (-f) to create or added to @@ -342,6 +343,14 @@ USAGE_API cat <$(col off)" + cat <