Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active January 22, 2016 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/ddd0f5786e5317e0570e to your computer and use it in GitHub Desktop.
Save icaoberg/ddd0f5786e5317e0570e to your computer and use it in GitHub Desktop.
Download files that follow a pattern in their filename #slurm
#!/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