karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AlanFoster <...@git.apache.org>
Subject karaf pull request: Add shell:wc command for KARAF-2164
Date Sun, 05 May 2013 17:47:48 GMT
GitHub user AlanFoster opened a pull request:

    https://github.com/apache/karaf/pull/18

    Add shell:wc command for KARAF-2164

    Adding support for a `shell:wc` command in Karaf :)
    
    ```
            __ __                  ____
           / //_/____ __________ _/ __/
          / ,<  / __ `/ ___/ __ `/ /_
         / /| |/ /_/ / /  / /_/ / __/
        /_/ |_|\__,_/_/   \__,_/_/
    
      Apache Karaf (2.3.2-SNAPSHOT)
    
    Hit '<tab>' for a list of available commands
    and '[cmd] --help' for help on a specific command.
    Hit '<ctrl-d>' or type 'osgi:shutdown' or 'logout' to shutdown Karaf.
    
    karaf@root> echo "hello world" | wc
            1       2       13
    karaf@root> wc LICENSE
            475     4053    28230   LICENSE
    
    karaf@root> wc LICENSE README RELEASE-NOTES
            475     4053    28230   LICENSE
            77      562     3933    README
            1831    16765   118449  RELEASE-NOTES
            2383    21380   150612  total
    karaf@root> cat LICENSE | wc -l
            475
    ```
    
    Let me know your thoughts on any improvements and such
    
    Alan

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/AlanFoster/karaf karaf-2.3.x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/18.patch

----
commit 89b442b61fab7cbdaac49b5410518241e8f5d121
Author: Alan Foster <alan@alanfoster.me>
Date:   2013-05-05T17:26:43Z

    Add shell:wc command for KARAF-2164

----


Mime
View raw message