Skip to main content

Execute multiple command lines based on text file inputs

Workflow preview

Execute multiple command lines based on text file inputs preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

Overview

This workflow takes a text file as input. It pulls the information from the text file and used it as a parameter to execute a command for each text line.

This workflow references a file /home/n8n/filelist.txt in the Read Binary File node which will need to be changed to work properly. You can also edit the Execute Command node to modify what happens for each of these lines of text.

workflow-screenshot

Note: This workflow requires the Execute Command node which is only available on the on-premise version of n8n.