#!/bin/bash filename="./symbols.txt" n=1 while read line; do echo "$line" taskset -c $((n-1)) python3 ./main_model.py $line 50 & n=$((n+1)) done < $filename