#!/bin/bash
#SBATCH -t 00:01:00
#SBATCH -a 1-10

args=`sed -n "${SLURM_ARRAY_TASK_ID} p" arguments.txt`
arglist=($args)
arg1=${arglist[0]}
arg2=${arglist[1]}

echo "ARRAY_TASK_ID =" ${SLURM_ARRAY_TASK_ID}
echo "arg1 =" $arg1
echo "arg2 =" $arg2
sleep 60