== Rules for target masks == For more flexible manupulations with files you may use rules for target masks: * \1..\9 transform into groups; * $!{1}..$!{64} like previous; * \0 и $!{0} transform into full source filename. Symbol '\' used for escaping other special symbols. For example, '\\' mean backslash (\) and '\*' mean just asterisk (*). === Examples === For all examples we use example files: {{{ bar.tar.gz foo.tar.bz2 some_file1.gz some_file2.bz2 }}} ==== Example 1 ==== * 'Source mask:' is {{{*.tar.*}}} * 'To:' is {{{\1.t\2}}} Result: {{{ bar.tgz foo.tbz2 some_file1.gz some_file2.bz2 }}} ==== Example 2 ==== * 'Source mask:' is {{{?*}}} * 'To:' is {{{\1__\1\2}}} Result: {{{ b__bar.tar.gz f__foo.tar.bz2 s__some_file1.gz s__some_file2.bz2 }}}