← All nodes
Unstructured Text

Duplicate Lines

Repeat each line of your text a chosen number of times, keeping the copies next to the original.

When to use it

Typical uses: Creating multiple labels or tickets per item; Building repeated rows for spreadsheet templates; Generating simple test data.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Copies of each linenumber—2
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Duplicate Lines: an example

  • Copies of each line=2
Text arriving
Text
Red Green Blue
The text after this node
Text
Red Red Green Green Blue Blue

Worth knowing

  • What is the maximum number of copies? Up to 100 copies of each line.
  • How is this different from the Text Repeater? This tool repeats each line in place. The Text Repeater repeats your whole text as one block.
  • Are empty lines repeated? Yes, so the structure of your text is kept.
  • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

Others in Unstructured Text