In a bash script, the command IFS=',' read -r a b c <<< "$line" changes the field separator for the rest of the script…