index_od and index_ets both implement identical text file indexing logic, using (respectively) an ets bag table and an orddict. index is printed to stdout.