[Gllug] Script for splitting dirs
Robert McKay
robert at mckay.com
Tue Jun 3 18:00:58 UTC 2003
On Tue, 3 Jun 2003, Tethys wrote:
>
> Robert McKay writes:
>
> >Might I suggest wc -c ?
> Well, yes, but it involves reading every byte in the file, which
> is fine for small files, but we're talking about gigabytes here.
> Reading st_size is a much better way to find out how big a file
> is.
> Tet
My wc (wc (textutils) 2.0.21) uses fstat64.. and then lseeks into the file
by the filesize amount to check it. That may not be the case with an
official SCO licensed UNIX [tm] wc though.. ;)
-Rob.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list