Suppose I\'ve got a list of files
file1 \"file 1\" file2
a for...in loop breaks it up between whitespace, not newlines:
for
UPDATE BY OP: this answer sucks and shouldn't be on top ... @Jordan's post below should be the accepted answer.
one possible way:
ls -1 | while read x; do echo $x done