Output File Naming Pattern

In a multiple output context, the file name of each new generated output file can be customized according to a specific pattern.

This pattern can be setup using the --multiple-output-naming-pattern parameter.

The following special characters can be used to build this pattern : {0}, {i} and {variable_name}.

File Naming Pattern Elements

Element
Description

{0}

stands for the default output path ( specified in the --out parameter )

{i}

stands for the current file index

{variable_name}

stands for any variable defined in the data

Example

Data structure

id
record1
record2

sku

sku1

sku2

Cases

Input File
Pattern
Output Files

product.json

{0}_{i}_{sku}

product_1_sku1.json product_2_sku2.json

product.json

{i}

1.json 2.json

product.json

{sku}

sku1.json sku2.json

product.json

{0}_{i}

product_1.json product_2.json

product.json

{0}_{sku}

product_sku1.json product_sku2.json

Last updated

Was this helpful?