Last active
January 22, 2016 15:40
-
-
Save icaoberg/ddd0f5786e5317e0570e to your computer and use it in GitHub Desktop.
Download files that follow a pattern in their filename #slurm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## the next line selects the partition/queue | |
#SBATCH -p pool1 | |
## the next line selects the number of nodes | |
#SBATCH -N 1 | |
## the next line selects the number of CPUs | |
#SBATCH -n 1 | |
## the next line selects the memory size | |
#SBATCH --mem=2G | |
## the next line selects the walltime | |
#SBATCH -t 12:00 | |
## the next lines are used to mail the user | |
## valid type values are BEGIN, END, FAIL, REQUEUE, and ALL (any state change). | |
#SBATCH --mail-type=END | |
#SBATCH --mail-user=icaoberg@andrew.cmu.edu | |
ADDRESS='http://murphylab.web.cmu.edu/software/2012_PLoS_ONE_Reannotation/' | |
for INDEX in {1..36} | |
do | |
FILENAME='HPA_reannotation_rawdataHPA_A431-'$INDEX'.tgz' | |
URL=$ADDRESS$FILENAME | |
wget -nc $URL | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment