Match Owner to filepath using Bash/Perl from Array : <p>I dont have any preference bash/perl etc for this. ( i'm not a developer but have experience with both )</p>

<p>I will have a list of File System Paths read recursively by a script to find large or old files - so lets imagine I have a File with list of paths files like:</p>

<ul>
<li>/fs1/john1a/test.conf</li>
<li>/fs1/storage/maryfolder/test.1.txt</li>
<li>/fs2/folder/john2a/full.txt</li>
</ul>

<p>I have a list of names and emails ( in an array? ) </p>

<ul>
<li>john,john@acme.com</li>
<li>mary,mary@acme.com</li>
</ul>

<p>I want to parse the file and send an email based on names in the list found in the paths. </p>

<p>So John will get 2 emails based on naming used:</p>

<ul>
<li>/fs1/"john"1a/test.conf</li>
<li>/fs2/folder/"john"2a/full.txt</li>
</ul>

<p>I am searching for solutions and will post if found.</p>

<p>Thanks in advance!</p>
