I have a shell script job.sh
.
contents are below:
#!/bin/bash
table=$1
sqoop job --exec ${table}
Now when I do ./job.sh table1
The script executes successfully.
I have the table names in a file tables.txt
.
Now I want to loop over the tables.txt
file and execute the job.sh
script 10 times in parallel.
How can I do that?
Ideally when I execute the script I want it to do like below;
./job.sh table1
./job.sh table2
./job.sh table3
./job.sh table4
./job.sh table5
./job.sh table6
./job.sh table7
./job.sh table8
./job.sh table9
./job.sh table10
What are the options available?