Skip to content

The bsdmainutils look utility, patched to support large files.

License

Notifications You must be signed in to change notification settings

stuartraetaylor/bsdmainutils-look

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published