A loop for linking files inside directory
<p>I am trying to make a bash script that creates a directory for  a corresponding directory and links some files in it. So I have a list of directories inside of <code>~/</code> with files in them called <code>Lev1_AA, Lev1_AB, Lev1_AC</code> and so on</p>

<p>In <code>~/</code> my script creates a directory called <code>test</code> where I want to create a number of directories that are named after the corresponding directories  <code>Lev1_AA, Lev1_AB, Lev1_AC, ... ,Lev1_AR</code> in <code>~/</code> and link some files inside of these directories.</p>

<p>What I don't know how to do is make a loop so that the script knows what directory belongs to which corresponding directory so that I link the right files.</p>