tools4j / unix4j

An implementation of Unix command line tools in Java.
unix4j.org
MIT License
236 stars 43 forks source link

GrepOption.n not seems to be working #50

Closed morad3741 closed 6 years ago

morad3741 commented 6 years ago

Hi, when trying to:

List<String> lines = Unix4j.fromFile(logFile).grep(Grep.Options.n,"INFO ").toStringList();

the output not contains the line number

terzerm commented 6 years ago

Thanks for reporting this bug. Indeed the line number option is currently not implemented.

I have committed a fix that will be released with the 0.5 version.

terzerm commented 6 years ago

Fixed as of version 0.5 (yet to be released).