How to access directory names that contain spaces ?
Hi all,
I have a script, that is supposed to search for files in all directories. Here is the part of it
for filename in `ls` ; do
cd "$filename"
# Searching files
done
Above code will work fine for all directories that doesn't contain any spaces in their names. But when a directory that contains space in its name, can't be accessed as the name gets split.
Thanks in advance.
|