⚙️ Execute multiple command lines based on text file inputs

3,865 views · ⚙️ DevOps & CI/CD

Description

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.

🔗 Nodes Used

Function, Read Binary File, Start, Convert to/from binary data

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup