Skip to content

Instantly share code, notes, and snippets.

@larsvilhuber
Created January 11, 2023 20:02
Show Gist options
  • Save larsvilhuber/010248a46240714382681b1cd9937fd3 to your computer and use it in GitHub Desktop.
Save larsvilhuber/010248a46240714382681b1cd9937fd3 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z $SGE_TASK_ID ]
then
for SGE_TASK_ID in $(seq 1 319)
do
export SGE_TASK_ID
source $0
done
else
echo "TASK ID: $SGE_TASK_ID"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment