GNU bug report logs - #13897
Linux command - wc

Previous Next

Package: coreutils;

Reported by: Francisco José Tena <tarod.net <at> gmail.com>

Date: Thu, 7 Mar 2013 16:56:01 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 13897 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: 13897 <at> debbugs.gnu.org, tarod.net <at> gmail.com
Subject: Re: bug#13897: Linux command - wc
Date: Thu, 7 Mar 2013 11:42:39 -0700
Paul Eggert wrote:
> On 03/07/13 03:38, Francisco José Tena wrote:
> > The next command is returning 5 chars:
> > 
> > $ echo "TEST" | wc -m
> 
> Tha's correct, since the 'echo' is outputting 5 characters:
> T, E, S, T, and newline.

See also the output from od.

  $ echo "TEST" | od -tx1 -c
  0000000  54  45  53  54  0a
            T   E   S   T  \n

Bob




This bug report was last modified 12 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.