Skip to content

brapse/ssej

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSEJ

ssej is a multicore stream processing tool you can use from the command line to work with text.

Usage

Maps

$ cat /usr/share/dict/words|ssej -m 'line.length'

Filters: list only short words

$ cat /usr/share/dict/words|ssej -f 'line.length < 10'

Group: split the dictionary into short and long words

$ cat /usr/share/dict/words|ssej -g 'line.length < 10'

Reduce: Group words by first letter, select longest word of group

$ cat /usr/share/dict/words|ssej -g "line[0]" -r "(p||'').length > c.length ? p : c"

Notes

Pronounced "essay"

License

Copyright (c) 2012 Sean Braithwaite, See LICENSE.txt for further details.

About

toy line parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors