Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6060

shell:wc -l should only print line count, without leading spaces

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.7
    • 4.2.3
    • None
    • None

    Description

      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.

      root@karaf()> ls | wc -l
          4943   4943
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              lichtin Martin Lichtin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: