bugfix: egrep typo and using tmp file

Typo in egrep string.

Also, dumping intermediate stuff to a file, because there were too many
things on the command line.

	modified:   indxr.sh