I have a question regarding linux parallel scripts: Context: I need to process many .dat files Code I have so far:#!/bin/bash#PBS -S /bin/bash# set parallel parameters #PBS -r n #PBS -l walltime=2:00:00 #PBS -l procs=298 #PBS -l pmem=1600m #PBS -m bea #PBS -M myemail@somewhere.com#PBS -N FileNamecd /home/user/Data/# start matlabmodule load matlab/2015b# Choose the MCR directory according to the compiler version usedMCR=/global/software/matlab/mcr/v90# set up matlab compilermcc -R -nodisplay -R -singleCompThread -R -logfile,ResultsOutput.txt -K -m -v -w enable FileName.m# cycle through all files# does the for loop send it to different nodes?for fileID in *.datdo  echo Running on host: `hostname`  echo Current working directory is `pwd`  echo Starting run at: `date`   echo $fileID  ./run_FileName.sh $MCR $fileID > Results_${PBS_JOBID}.out &  echo Job finished at: `date`    doneneed to retain results ??
Running a for loop in parallel
parallelism