Skip to content

Instantly share code, notes, and snippets.

@kaneshin
Created November 27, 2011 06:39
Show Gist options
  • Save kaneshin/1397100 to your computer and use it in GitHub Desktop.
Save kaneshin/1397100 to your computer and use it in GitHub Desktop.
bash array
SDFILE=("3PK" "BRYBND" "BARD" "WATSON" "ALLINIT" "ALLINITC" "ALLINITU")
for (( i = 0; i < ${#SDFILE[@]}; i++ ))
do
echo ${SDFILE[$i]}
echo -e "\n${SDFILE[$i]}\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> $LOG
date >> $LOG
sdcg_descent ${SDFILE[$i]} 2>&1 >> $LOG
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment