indexer is a small utility for indexing directories. you can get it here.
it uses system calls to determine if filename is an actual file or a directory, so it works only on linux.

indexer works like that

indexer can be used to create indexes recursively using one-liners like this one:

	for i in * */* */*/* */*/*/* ; do (cd "$i" ; indexer * --css /path/to/../style.css > index.html) ; done