From owner-freebsd-questions Fri Aug 13 0: 8:58 1999 Delivered-To: freebsd-questions@freebsd.org Received: from toprate.inetworx.com.ph (toprate.inetworx.com.ph [202.61.77.5]) by hub.freebsd.org (Postfix) with ESMTP id 490B614C3A for ; Fri, 13 Aug 1999 00:08:51 -0700 (PDT) (envelope-from val@inetworx.com.ph) Received: (from uucp@localhost) by toprate.inetworx.com.ph (8.8.8/8.8.8) id PAA28066 for ; Fri, 13 Aug 1999 15:41:31 +0800 (PHT) (envelope-from val@inetworx.com.ph) Received: from toprate.inetworx.com.ph(192.168.88.1) by toprate.inetworx.com.ph via smap (V2.1) id xma028061; Fri, 13 Aug 99 15:41:07 +0800 Message-ID: <37B3C788.22864601@inetworx.com.ph> Date: Fri, 13 Aug 1999 15:21:44 +0800 From: val X-Mailer: Mozilla 4.05 [en] (Win95; I) MIME-Version: 1.0 To: questions@freebsd.org Subject: A simple query Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear Mark,

Hi! It's good to know (actually, I'm very thankful!) there's
a website like yours! I'm Valentino P. Pecaoco and  a
Software Engineer by profession (just starting with my
career, actually). I'm an absolute beginner in UNIX
(FreeBSD, of course!) but I can't wait to "manhandle" it.

I have just a simple question: How can I "count" the bytes
of a file and sum up the total of different files? When I
summon the ls -l command, UNIX lists it in long format,
along with the file size. I always wondered how (ever since
DOS!) I could access the file size, perhaps store it to a
variable to be used in a program that, say, limits the size
of a collection of certain files. The files have the .db extension,
so should I take up a tutorial on database languages instead?
What specific programming language should I use (in retrieving
the file size and adding it up)?

Just show me the way, and I'll do the rest, rest assured that I'll
do my best to scour the whole cyberspace to seek for the answer.
Thanks a million!

Sincerely,
Valentino P. Pecaoco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message