stuartraetaylor / bsdmainutils-look

The bsdmainutils look utility, patched to support large files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The bsdmainutils look utility, patched to support large files.

License:Other


Languages

Language:C 99.2%Language:Makefile 0.8%