for i in $(ls -1Q somedirectory); do
in the above example i get all separate words instead of an entire row. my problem is that i have directories that have spaces in them. without correcting the spaces in the directory names... how do i get an entire directory name????