1

I'm looking for an equivalent of the unix look command, which searches a text file for lines beginning with a given prefix. In particular, it has an option for a binary search within a pre-sorted text file.

Does anything like this exist on Windows? I know about find, but it doesn't have the binary search option.

2 Answers2

1

You can find look in util-linux which is straight from ftp.kernel.org/pub/linux/utils/util-linux. look.c is simple enough to be adapted to a mingw or msvc build environment without great hassles.

0

There's always Cygwin.

There's probably a native solution of course.

Szocske
  • 101