Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 1999 15:21:44 +0800
From:      val <val@inetworx.com.ph>
To:        questions@freebsd.org
Subject:   A simple query
Message-ID:  <37B3C788.22864601@inetworx.com.ph>

next in thread | raw e-mail | index | archive | help
<HTML>
<FONT FACE="Arial,Helvetica">Dear Mark,</FONT><FONT FACE="Arial,Helvetica"></FONT>

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

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

<P><FONT FACE="Arial,Helvetica">Just show me the way, and I'll do the rest,
rest assured that I'll</FONT>
<BR><FONT FACE="Arial,Helvetica">do my best to scour the whole cyberspace
to seek for the answer.</FONT>
<BR><FONT FACE="Arial,Helvetica">Thanks a million!</FONT><FONT FACE="Arial,Helvetica"></FONT>

<P><FONT FACE="Arial,Helvetica">Sincerely,</FONT>
<BR><FONT FACE="Arial,Helvetica">Valentino P. Pecaoco</FONT></HTML>



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37B3C788.22864601>