HF RL Explorer

Task: Run Text File as Commands in Bash

Task: Run Text File as Commands in Bash: a task in Terminal-Lego-15k (Harbor dataset). Create a script that reads commands from a text file (one command per line) and executes each line as a separate bash command. The solution should handle empty lines gracefully (skip them) and execute commands…

The task

Create a script that reads commands from a text file (one command per line) and executes each line as a separate bash command. The solution should handle empty lines gracefully (skip them) and execute commands sequentially.

Part of PrimeIntellect/Terminal-Lego-15k.