#!/bin/bash for itemx in $(cat all_list) do mkdir $itemx cd $itemx wget https://files.rcsb.org/download/$temx.pdb cd ../ done