XALON Tools™
Execute multiple Command Lines based on Text File Inputs
Execute multiple Command Lines based on Text File Inputs
Couldn't load pickup availability
📂 Read Text File → Execute Command for Each Line 💻
This workflow reads a .txt file and uses each line as input to execute a command — ideal for batch operations, automation tasks, or system scripting!
🔧 How it works:
📄 Read Binary File Node – Reads the contents of a specified file.
📌 Currently set to /home/n8n/filelist.txt. Update this path to point to your own file.
📃 SplitInBatches Node – Processes each line of the file one at a time, allowing for clean, sequential execution.
💬 Set Node – Prepares each line to be passed into the command as a parameter.
🖥️ Execute Command Node – Runs a custom command using the current line as an input parameter.
📌 Edit this node to define the action you want for each line (e.g., curl requests, file operations, CLI tools).
⚠️ Note: The Execute Command node is only available in the on-premise version of n8n.
💡 Use Cases
Bulk rename or process files
Trigger API calls from a list of URLs
Perform mass operations on data
Automate local script execution
🛠️ Fully Customizable
Change the input file path, tweak the command, or integrate it with other systems — this workflow adapts to your exact needs.
