I have a .txt
file which contains different words ( 1 million words ). I want to make a single output file containing information about the occurrences of words. I am using the command:
$ ./dumpindex /home/pankaj/indri-5.0/Query/indri_test_may.idx/ t "input_word_from_file" > /home/pankaj/output_file.txt
input_word_from_file
is the query word from the file.
Issues:
- How to pass the input word automatically to the command from the file
- How to write the output file in append mode. ( because it gets updated with the latest output of the run command).