I want to automate my xcode projects. Everything works fine except for the name of the projects with spaces. I tried the following commands:
output_apps=`find ./ -name "*.app" -print` output_apps=`find ./ -name "*.app"`
When i started
find ./ -name "*.app" -print
without saving to a variable, it gives me the result as expected, as follows:
.//Ten EU.app .//Ten Official App EU.app .//Ten Official App.app .//Ten.app
However, when I save the output of the command above in a variable as shown below
output_apps=`find ./ -name "*.app" -print`
and then run the for loop to get the names
for curr_app in $o do echo "$curr_app" done
He shows
.//Ten EU.app .//Ten Official App EU.app .//Ten Official App.app .//Ten.app
How to keep spaces between each output and get the next output?
Ten EU.app Ten Official App EU.app Ten Official App.app Ten.app
source share