GNU bug report logs -
#19969
problem: wc -c doesn't read actual # of bytes in file
Previous Next
Reported by: Linda Walsh <coreutils <at> tlinx.org>
Date: Sat, 28 Feb 2015 09:00:03 UTC
Severity: normal
Tags: fixed
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 19969 <at> debbugs.gnu.org (full text, mbox):
On Sat, Feb 28, 2015 at 12:59 AM, Linda Walsh <coreutils <at> tlinx.org> wrote:
> (coreutils-8.21-7.7.7)
>
> wc -c(bytes) doesn't seem to reliably read the number
> of bytes in a file.
>
> I was wanting to find out what the largest data-source
> files in '/proc' and '/sys' (didn't get around to trying
> /sys, since all the files under /proc/sys return 0 bytes.
>
> Note -- "wc -l" doesn't return '0' on the /proc/sys files.
>
> As root:
> # cd /proc
> # find -H [^0-9]* -name self -prune -o -name thread-self -prune -o -type f !
> -name kmsg ! -name kcore ! -name kpagecount ! -name kpageflags -print0|wc -c
> --files0-from=- |sort -n
Thanks for the report.
However, with wc from coreutils-8.23 and a 3.10 kernel, this is no
longer an issue.
This bug report was last modified 6 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.