FM-index executables
Here you can find the Gnu/Linux and
Windows executables of the
FM-index tool: bwi is used for compression/decompression,
bwsearch is used for substring searching in the compressed files.
Typical usages are:
-
bwi myfile
(creates myfile.bwi which is the compressed index)
-
bwsearch foo myfile.bwi
(counts # of occurrences of foo in myfile)
-
bwsearch -l foo myfile.bwi
(finds the positions of the occurrences of foo
in myfile)
-
bwsearch -r foo myfile.bwi
(reports the positions of the occurrences of foo in myfile)
-
bwsearch -s10 foo myfile.bwi
(prints 10 characters surronding each occurrences
of foo)
-
bwi -d myfile.bwi
(creates myfile.bwi.y which is a copy of the
original file myfile)