When I submit an array job using *sbatch --array:1-N myscript.sh *the task id is passed at runtime to *myscript.sh* via the environment variable SLURM_ARRAY_TASK_ID. But how can I access *N* (the number of tasks in the array job) in *myscript.sh*?
This is especially useful when splitting a list into *N* slices with each task in the array job handling a different slice. Thanks for your help, jc
