title: Bash Script - store find command output without spaces in variable
body: <p>I am looking to automate my xcode projects. It all works fine except the projects name with spaces. I have tried the following commands:</p>
  
  <pre><code>output_apps=`find ./ -name "*.app" -print`
  output_apps=`find ./ -name "*.app"`
  </code></pre>
  
  <p>When I run </p>
  
  <pre><code>find ./ -name "*.app" -print 
  </code></pre>
  
  <p>without storing into variable, it gives me output as expected as mentioned below:</p>
  
  <pre><code>.//Ten EU.app
  .//Ten Official App EU.app
  .//Ten Official App.app
  .//Ten.app
  </code></pre>
  
  <p>However when I store the output of above command in a variable as below</p>
  
  <pre><code>output_apps=`find ./ -name "*.app" -print`
  </code></pre>
  
  <p>and then run the following for loop for get the names</p>
  
  <pre><code>for curr_app in $o
  do 
      echo "$curr_app"
  done
  </code></pre>
  
  <p>It shows</p>
  
  <pre><code>.//Ten
  EU.app
  .//Ten
  Official
  App
  EU.app
  .//Ten
  Official
  App.app
  .//Ten.app
  </code></pre>
  
  <p>How do I maintain the spaces between each output and get the following output?</p>
  
  <pre><code>Ten EU.app
  Ten Official App EU.app
  Ten Official App.app
  Ten.app
  </code></pre>