Subject: Re: wc: filename: invalid byte sequence
To: None <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 08/27/2007 13:23:23
>>> wc is designed to work with text files, not binary files.
>> % tar cf - data | wc
> tar cf - data | dd bs=1 of=/dev/null
> should do the job, shouldn't it?

Hmm, probably.  Eventually.  At two syscalls per byte, it will take a
very long time if the archive is at all large.  But you're right, it
will do the job.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B