nmax Search N maximum elements in the input stream. Installation $ gem install hrom512-nmax Usage $ cat sample_data_40GB.txt | nmax 10000 License The gem is available as open source under the terms of the MIT License.