ds005479_cat12.9/code/createjobs_cat12.sh

11 lines
329 B
Shell
Executable file

#!/bin/bash
#
# input 1 => jobfile with 1 command per line
# input 2 => number of jobs per nodes to process within 24h with SLURM
JOBFILE=code/ds005479_cat12.jobs
nodejobs=2200
# splitting the ds005479_cat12.jobs file according to node distribution
cat ${JOBFILE} | parallel -j1 --pipe -N${nodejobs} 'cat > code/jobs/job_{#}'