Subject: Re: wc: filename: invalid byte sequence
To: <>
From: Ignatios Souvatzis <is@netbsd.org>
List: tech-userlevel
Date: 08/27/2007 17:12:25
On Sat, Aug 25, 2007 at 09:36:52PM -0400, der Mouse wrote:
> >> On the attached file, wc(1) on 4.99.30/amd64 reports "invalid byte
> >> sequence" quite often.
>
> >> I don't see why it should do that,
>
> > wc is designed to work with text files, not binary files.
>
> What is the correct tool to use, then, for one-offs like
>
> % tar cf - data | wc
>
> to find out how big the resulting archive is? (This is not a
tar cf - data | dd bs=1 of=/dev/null
should do the job, shouldn't it?
-is
--
seal your e-mail: http://www.gnupg.org/