Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.57 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.57 KB

bsearch

Build Status Download

A utility for binary searching a sorted file for lines that start with the search key.

NAME:
   bsearch - utility for binary searching a sorted file for lines that start with the search key

USAGE:
   bsearch [options] SEARCH_KEY FILENAME

VERSION:
   1.0.2

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   -r, --reverse      the reverse flag indicates the file is sorted in descending order
   -i, --ignore-case  case insensitive
   -t, --trim         ignore whitespace
   -n, --numeric      use numeric comparison
   --help, -h         show help
   --version, -v      print the version

Download Binaries

Binaries are available for Linux, Windows and macOS.

Download the latest version here.

Installing

You can install bsearch via the following OS specific repositories.

Debian/Ubuntu

# Add Bintray's GPG key
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61

# Add the repository
echo "deb https://dl.bintray.com/jamesridgway/debian xenial main" | sudo tee -a /etc/apt/sources.list

# Update apt
sudo apt-get update

# Install
sudo apt-get install bsearch