On Thu, 2003-02-06 at 11:11, Sheldon Lee-Wen wrote: > Hi, > > 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?
ls -b /var/www/htlml/files Andreas -- Andreas J. Guelzow <[EMAIL PROTECTED]> Taliesin
signature.asc
Description: This is a digitally signed message part