Handling whitespace in For loop
I'm trying to write a script that will list all files and directoryfrom a directory.
for file in $DIRNAME; do
Unfortunately the for loop does not handle whitespaces in files.
Is there a solution to it?
Is there a system variable that define the field separator of a for loop?