I have a txt file (say jobs.txt) that has several lines like:
"sbatch -w node00x script.sh 1"
"sbatch -w node00z script.sh 10"
.
.
etc
I wonder if it is possible to create an executable bash file like the following
#!/bin/bash
while read -r line;
do submit the job by line;
done < jobs.txt;
that I can just execute and which will run the jobs in respective nodes. I have very limited knowledge in this area. Would appreciate any help.