Skip to content
The bsdmainutils look utility, patched to support large files.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
.gitignore
LICENSE
Makefile
README.md
look.c
pathnames.h

README.md

bsdmainutils-look

The bsdmainutils look utility, which has been patched to support large files.

This version of look is intended to address the 'File is too large' error returned by look when searching large files on Debian and Ubuntu Linux, e.g.,

$ look -bf 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 pwned-passwords-ordered-by-hash.txt
look: pwned-passwords-ordered-by-hash.txt: File too large

Usage

  1. Fetch the source

     git clone https://github.com/stuartraetaylor/bsdmainutils-look.git
     cd bsdmainutils-look
    
  2. Build

     make
    
  3. Install

     sudo make install
    
  4. Execute

     look
    

Documentation

look is a utility to display lines beginning with a given string. Binary search of large files is supported.

See the manpages look(1).

Acknowledgements

Based on the Ubuntu bsdmainutils package source from https://launchpad.net/ubuntu/+source/bsdmainutils/11.1.2ubuntu2

For details and the original patch see https://bugs.launchpad.net/ubuntu/+source/bsdmainutils/+bug/510613

You can’t perform that action at this time.