我有一个包含不同单词(一百万个单词)的.txt
文件。我想生成一个输出文件,其中包含有关单词出现的信息。我使用的是命令:
$ ./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
是来自文件的查询词。
问题:
发布于 2018-05-31 18:12:40
对于append,使用>>而不是>
$ ./dumpindex /home/pankaj/indri-5.0/Query/indri_test_may.idx/ t "input_word_from_file" >> /home/pankaj/output_file.txt
https://stackoverflow.com/questions/50621790
复制相似问题