I am trying the write a little script to convert some MS Word files to HTML, however 
some of the word files contain spaces in their name.

Hense, when I use the couple of lines below, it treats the space as a delimiting 
character and chops up the filename.

Anyone know how to get around this without renaming all the files (some 350).

Ie

for FILE in `ls`; do
        echo "Converting $FILE..."
done

Converting xxx...
Converting yyy...
Converting zzz.doc...

[root@panda MSDS]#  ls -l xxx\ yyy\ zzz.doc 
-rwxr-xr-x    1 root     root            50 Oct 26 14:40 xxx yyy zzz.doc
[root@panda MSDS]# 

Matt


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to