0.0.13 • Published 5 years ago
sunnysort v0.0.13
Installation
sunnysort requires Node.js v4+ to run.
$ npm install -g sunnysort
Use
create a file name zipcode and paste in following: Joe 56789 Sam 45678 Bob 34567 Wendy 23456 Adam 12345
Try if the file is created properly
$ cat zipcode
Joe 56789 Sam 45678 Bob 34567 Wendy 23456 Adam 12345
Get the sorted result
$ sunnysort zipcode
Adam 12345 Bob 34567 Joe 56789 Sam 45678 Wendy 23456
The -r option just reverses the order of the sort
$ sunnysort zipcode -r
Wendy 23456 Sam 45678 Joe 56789 Bob 34567 Adam 12345
Use the -k option to sort on a certain column. For example, use "-k 2" to sort on the second column.
$ sunnysort zipcode -k 2
Adam 12345 Wendy 23456 Bob 34567 Sam 45678 Joe 56789
What is so much funny about sunnysort? You should not use it, instead use sort devloped by the great Ken Thompson, this project is just for.... FUN