Skip to content
/ nmax Public

a ruby script that reads <n> top numbers from stdin and prints them to stdout

License

Notifications You must be signed in to change notification settings

epsylonix/nmax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#nmax

Build Status

Home: https://github.com/epsylonix/nmax

Bugs: https://github.com/epsylonix/nmax/issues

#Description nmax is a simple program that takes in text data from the standart input and outputs N top numbers found in the text to the standart output.

#Installation git clone https://github.com/epsylonix/nmax.git cd nmax gem build nmax.gemspec gem install nmax-0.0.1.gem

#Usage: cat sample_data_40GB.txt | nmax N

##Notes:

  • Input data is expected to be in ASCII or UTF-8 encoding.
  • Output is sorted in ascending order
  • Leading zeros are inored (00058 is converted to 58)
  • Duplicate numbers are not removed

#License nmax is released under the MIT License.

About

a ruby script that reads <n> top numbers from stdin and prints them to stdout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages