On July 13, 2003 06:05 am, David selby wrote:
> I need to scan a directory for the file names contained in it.
>
> for _scantox in $(ls $_tox); do
> .....
> done
If I expect to find files with spaces I always use some variant of this:
ls /somewhere | while read file; do
something "$file"
done
--
Fraser Campbell <fraser@wehave.net> http://www.wehave.net/
Halton Hills, Ontario, Canada Debian GNU/Linux