karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4273) Add -o (--only-matching) option to grep command
Date Wed, 07 Sep 2016 16:08:20 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471018#comment-15471018

ASF subversion and git services commented on KARAF-4273:

Commit 7660ee68ca903f0531f6fb2ae902bb37c4754dd3 in karaf's branch refs/heads/master from [~gnt]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=7660ee6 ]

[KARAF-4273] Add -o (--only-matching) option to grep command
[KARAF-4376] Make grep return the list of results rather than null
Also refactor grep command using the gogo jline grep implementation which uses the AttributedString
for ease of use.

> Add -o (--only-matching) option to grep command
> -----------------------------------------------
>                 Key: KARAF-4273
>                 URL: https://issues.apache.org/jira/browse/KARAF-4273
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 4.0.4
>            Reporter: Roland Hauser
>            Assignee: Guillaume Nodet
>             Fix For: 4.1.0
> It would be helpful for scripting if the built-in grep command had an -o option like
the Unix counterpart. The -o option should cause grep to print only the matching section of
a line, not the whole line itself.

This message was sent by Atlassian JIRA

View raw message