Read filenames with embedded whitespace into an array in a shell script
<p>Basically I'm searching for a multi-word file which is present in many directories using find command and the output is stored on to a variable vari</p>

<pre><code>    vari = `find -name "multi word file.xml"
</code></pre>

<p>When I try to delete the file using a for loop to iterate through.,</p>

<pre><code>    for file in ${vari[@]}
</code></pre>

<p>the execution fails saying.,</p>

<pre><code>    rm: cannot remove `/abc/xyz/multi':: No such file or directory
</code></pre>

<p>Could you guys please help me with this scenario??</p>