Batch Execute Commands from Text File Lines

Reads a text file line-by-line and executes a customizable command for each line using n8n's on-premise Execute Command node in a self-looping workflow.

This n8n workflow automates batch command execution by reading a text file (e.g., filelist.txt), splitting its contents into an array, and iteratively running a command for each line. It starts with a manual trigger, reads the binary file, moves data to JSON, processes it in a Function node to create an array and track size, then uses the Execute Command node with $runIndex for looping. An IF node checks if more iterations are needed (runIndex < dataSize), enabling self-looping until complete, a
Platform
n8n
Category
Language Tools
Price
$11.99
Creator
Jordi Faber

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Language Tools workflows

More from Jordi Faber

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.