title: How can I search for files in directories that contain spaces in names, using "find"?
body: <p>How can I search for files in directories that contain spaces in names, using <code>find</code>?
  i use script</p>
  
  <pre><code>#!/bin/bash
  for i in `find "/tmp/1/" -iname "*.txt" | sed 's/[0-9A-Za-z]*\.txt//g'`
  do
      for j in `ls "$i" | grep sh | sed 's/\.txt//g'`
      do
          find "/tmp/2/" -iname "$j.sh" -exec cp {} "$i" \;
      done
  done
  </code></pre>
  
  <p>but the files and directories that contain spaces in names are not processed?</p>