| 1 | |
| 2 | == Rules for target masks == |
| 3 | |
| 4 | For more flexible manupulations with files you may use rules for target masks: |
| 5 | |
| 6 | * \1..\9 transform into groups; |
| 7 | * $!{1}..$!{64} like previous; |
| 8 | * \0 и $!{0} transform into full source filename. |
| 9 | |
| 10 | Symbol '\' used for escaping other special symbols. For example, '\\' mean backslash (\) and '\*' mean just asterisk (*). |
| 11 | |
| 12 | === Examples === |
| 13 | |
| 14 | For all examples we use example files: |
| 15 | {{{ |
| 16 | bar.tar.gz |
| 17 | foo.tar.bz2 |
| 18 | some_file1.gz |
| 19 | some_file2.bz2 |
| 20 | }}} |
| 21 | |
| 22 | ==== Example 1 ==== |
| 23 | * 'Source mask:' is {{{*.tar.*}}} |
| 24 | * 'To:' is {{{\1.t\2}}} |
| 25 | |
| 26 | Result: |
| 27 | {{{ |
| 28 | bar.tgz |
| 29 | foo.tbz2 |
| 30 | some_file1.gz |
| 31 | some_file2.bz2 |
| 32 | }}} |
| 33 | |
| 34 | ==== Example 2 ==== |
| 35 | * 'Source mask:' is {{{?*}}} |
| 36 | * 'To:' is {{{\1__\1\2}}} |
| 37 | |
| 38 | Result: |
| 39 | {{{ |
| 40 | b__bar.tar.gz |
| 41 | f__foo.tar.bz2 |
| 42 | s__some_file1.gz |
| 43 | s__some_file2.bz2 |
| 44 | }}} |
| 45 | |