iphone=($( find / -name "*~iphone*" ) )
echo ${#iphone[@]}
rm -r ${iphone[@]} >/dev/null 2>&1
This is a portion of a script I have that should remove all files with "~iphone" anywhere in the name, as well as echoing the amount of files it found. So how might this script be modified to allow file names with spaces, as right now it messes with the count and doesn't delet the files.