Views:
168β
Votes: 5β
β
Solution
Tags:
command-line
bash
scripts
python
java
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/882768
Title:
Looping command line program
ID:
/2017/02/13/Looping-command-line-program
Created:
February 13, 2017
Edited: February 13, 2017
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Using bash by default one command doesnβt start until the first one finishes so you can use:
/path/to/command /path/to/file1
/path/to/command /path/to/file2
/path/to/command /path/to/file3
Put the commands in a script called for example ~/run-all-commands
. Then mark it as executable using:
chmod +x ~/run-all-commands
Then call the bash script with batch of commands using:
~/run-all-commands