karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ioannis Canellos (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (KARAF-316) Add head/tail commands
Date Thu, 09 Dec 2010 17:56:01 GMT

     [ https://issues.apache.org/jira/browse/KARAF-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ioannis Canellos resolved KARAF-316.
------------------------------------

    Resolution: Fixed

Patch committed on behalf of Lars Heinemann with many thanks.
Adding         shell/commands/src/main/java/org/apache/karaf/shell/commands/HeadAction.java
Adding         shell/commands/src/main/java/org/apache/karaf/shell/commands/TailAction.java
Sending        shell/commands/src/main/resources/META-INF/services/org/apache/karaf/shell/commands
Sending        shell/commands/src/main/resources/OSGI-INF/blueprint/shell-commands.xml
Transmitting file data ....
Committed revision 1044051.

I just changed two things.
a) There was a minor bug in how the number of lines to display were calculated in tail command.
b) Commands changed so that no args means use STDIN,

Thanks again Lars.

> Add head/tail commands
> ----------------------
>
>                 Key: KARAF-316
>                 URL: https://issues.apache.org/jira/browse/KARAF-316
>             Project: Karaf
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 2.1.2
>            Reporter: Gert Vanthienen
>            Assignee: Ioannis Canellos
>             Fix For: 2.2.0
>
>         Attachments: shell.patch
>
>
> It would be nice if we could add head and tail commands to filter only the x first /
last lines of output like in *nix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message