HSGrep: Sorted grep in Haskell
As an exercise to learn Haskell, I wrote a specialized
grep to work on sorted files. It uses binary search to scan a text file and print all the (consecutive) lines that start with a user defined string.
After downloading the source code, build install and run it with:
$> cabal build $> cabal install $> hsgrep <string> <filename>