Catalytic is now PagerDuty Workflow Automation

Text: Count number of lines

This action is in beta and the function or availability may change unexpectedly.

🕙  1 minute read

Use this action to count the number of lines in text.

Example Number of lines
quick brown fox 1
quick brown fox Quick brown fox QUICK BROWN FOX Quick! Brown, fox! quick-brown-fox 5
quick brown fox Quick brown fox QUICK BROWN FOX 3

How to configure this action

When configuring this action, enter a string or reference a field in the Source Text field configuration. How do I reference a field?

Fields for this action

  • Source Text

    • The string to perform the operation on. Enter text or reference a text field.
  • Output field prefix

    • To help keep output fields organized, choose an output field prefix to add to the beginning of each output field name as this action may output more than one field.

What will this output?

This action may generate multiple fields. To help keep output fields organized, the prefix above will be added to the beginning of each of the output field names, separated by two dashes. Each field will result as:{{output-field-prefix--output-field}}.

Output fields for this action

  • Number Of Lines

    • The result of the operation. The output is an integer type field.

Sorry about that. What was the most unhelpful part?









Thanks for your feedback

We update the Help Center daily, so expect changes soon.

Link Copied

Paste this URL anywhere to link straight to the section.