title: Replace spaces in KSH with SED
body: <p>I am building a find command programatically:</p>
  
  <pre><code>find  "${SRC_DIR}" "${FILE_NAMES}" -type f -mtime +14 -level 0
  </code></pre>
  
  <p>Where FILE_NAMES is the file patterns that I need to match, which is a simple whitespace delimited list of patterns (*.txt, *.html, etc).</p>
  
  <p>To format this list correctly for the find command, it can't just be a list though, it has to look like:</p>
  
  <pre><code>-name *.txt -o -name *.html
  </code></pre>
  
  <p>My solution was to use:</p>
  
  <pre><code>FILE_NAMES=$(echo ${FILES} | sed -e 's/\s+/-o -name /g')
  </code></pre>
  
  <p>But it's not working, specifically it doesn't seem to understand that I want to replace whitespace. Does anyone have a better way to do this?</p>