Sheldon Lee-Wen wrote:
Hi,for doc in /var/www/htlml/files/*;
I'm trying to write a script where I can get the names of files in a directory. Normally this is easy, like this:
for doc in `ls /var/www/htlml/files`
do
echo $i
done
However, some of the files have spaces in the names, like "My File.html"
How do I get $doc to have the correct file name?
Thanks
Sheldon.
do
echo "$doc"
done
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]