You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2019/01/28 16:32:00 UTC
[jira] [Resolved] (KARAF-6060) shell:wc -l should only print line
count, without leading spaces
[ https://issues.apache.org/jira/browse/KARAF-6060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved KARAF-6060.
-----------------------------------------
Resolution: Fixed
> shell:wc -l should only print line count, without leading spaces
> ----------------------------------------------------------------
>
> Key: KARAF-6060
> URL: https://issues.apache.org/jira/browse/KARAF-6060
> Project: Karaf
> Issue Type: Wish
> Affects Versions: 4.1.7
> Reporter: Martin Lichtin
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 4.2.3
>
>
> shell:wc -l (or -c -w -m) should only print one count, without leading spaces.
> It would then behave more like regular Unix wc and the output can more easily be used with another tool.
> Currently it prints two values instead (it printed only one in 4.0), with white-spacing around it.
> {noformat}
> root@karaf()> ls | wc -l
> 4943 4943
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)