AcademyWorkflowsDevelopment

Execute Multiple Command Lines from a Text File

Technical staff who run the same command across a list of files or identifiers on a self-hosted n8n.

  • Recommendedour rating
  • 3,065views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

execute-multiple-command-lines-based-on-text-file-inputs.json

Loading the file...

What it does

An n8n template that reads a text file and runs a command for each line, using each line as a parameter. The file path is set in the Read Binary File node and the command in the Execute Command node. The Execute Command node is only available in the self-hosted version of n8n.

Use cases

  1. 01Running one command for each line of a list file
  2. 02Processing a batch of file names read from a text file
  3. 03Running one script for each entry in a text list

Questions about
Execute Multiple Command Lines from a Text File.

What is Execute Multiple Command Lines from a Text File used for?

Technical staff who run the same command across a list of files or identifiers on a self-hosted n8n. An n8n template that reads a text file and runs a command for each line, using each line as a parameter. The file path is set in the Read Binary File node and the command in the Execute Command node. The Execute Command node is only available in the self-hosted version of n8n.

How do I import Execute Multiple Command Lines from a Text File into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Execute Multiple Command Lines from a Text File safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.