find command not working in directories with space and special character
<p>I am trying to use "find" command for to find specific file name . However, it contains space and "()" symbol. I tried following</p>

<pre><code>cspath="/cygdrive/e/dir/dir1/OneDrive - The Asia Group/TAG (1)/Works in Progress/Brian/Jaycees/Firecracker 4 Mile Road Race - 2015 Shirt_files"

/usr/bin/find $cspath -print0
</code></pre>

<p>But it shows error like below :</p>

<pre><code>find: ‘/cygdrive/e/dir/dir1/OneDrive’: No such file or directory
find: ‘-’: No such file or directory
find: ‘The’: No such file or directory
find: ‘Asia’: No such file or directory
find: ‘Group/TAG’: No such file or directory
find: ‘(1)/Works’: No such file or directory
find: ‘in’: No such file or directory
find: ‘Progress/Brian/Jaycees/Firecracker’: No such file or directory
find: ‘4’: No such file or directory
find: ‘Mile’: No such file or directory
find: ‘Road’: No such file or directory
find: ‘Race’: No such file or directory
find: ‘-’: No such file or directory
find: ‘2015’: No such file or directory
find: ‘Shirt_files’: No such file or directory*
</code></pre>

<p>I also tried following :</p>

<pre><code>find "{$cspath}" -print0
</code></pre>

<p>but the error happend again (this time printed \n in every space)</p>

<pre><code>find: ‘{/cygdrive/e/dir/dir1/OneDrive\n-\nThe\nAsia\nGroup/TAG\n(1)/Works\nin\nProgress/Brian/Jaycees/Firecracker\n4\nMile\nRoad\nRace\n-\n2015\nShirt_files}’: No such file or directory
</code></pre>

<p>please suggest</p>