← All nodes
Unstructured Text

Add Line Numbers

Put a number in front of every line of your text.

When to use it

Typical uses: Numbering steps in instructions or recipes; Referencing lines in code reviews or scripts; Creating numbered lists for documents.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Start atnumber—1
Separatorselect—dot
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Add Line Numbers: an example

  • Start at=1
  • Separator=1. line
Text arriving
Text
Preheat the oven Mix the flour and sugar Add the eggs
The text after this node
Text
1. Preheat the oven 2. Mix the flour and sugar 3. Add the eggs

Worth knowing

  • Are blank lines numbered? Yes. Remove them first with Remove Empty Lines if you want continuous numbering.
  • Can I start from zero? Yes. Set “Start at” to 0.
  • How do I remove line numbers? Use Find and Replace with a regular expression such as ^\s*\d+\. .
  • 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