nxbdi / unix4j

Automatically exported from code.google.com/p/unix4j

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spend more time with grep.

GoogleCodeExporter opened this issue · comments

Grep is pretty powerful on the command line.  It would be nice if you could add 
more of the features.

Here is a set that I typically use.
 grep -A 10 -B 10 -H FILE *.txt

Add 10 lines after context and 10 lines before.  Print the name of the file as 
a prefix to the output.

What version of the product are you using? On what operating system?

0.3




Original issue reported on code.google.com by berlin.b...@gmail.com on 4 Sep 2013 at 1:42

OK, I meant for this to be a feature.

Original comment by berlin.b...@gmail.com on 4 Sep 2013 at 1:42

accepted. problem is that adding more arguments blows up the interface as we 
have to add a lot of combinations.

will try to consider for next release.

Original comment by terz...@gmail.com on 6 Nov 2013 at 8:24

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Original comment by terz...@gmail.com on 6 Nov 2013 at 8:24

  • Changed state: Accepted