[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] [RaQ 4] File Listing/Count
- Subject: RE: [cobalt-users] [RaQ 4] File Listing/Count
- From: "Jolley, Carl" <Carl.Jolley@xxxxxxx>
- Date: Fri Aug 9 12:45:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----Original Message-----
From: William J.A. Brillinger
To: cobalt-users@xxxxxxxxxxxxxxx
Sent: 8/8/02 11:17 PM
Subject: [cobalt-users] [RaQ 4] File Listing/Count
Hi,
Is there a quick & easy way to get a count of the Total Number of files
in
the file system?
-------------------
Faced with this problem I would write a script that would
do a ls -lR . >file.list
Then do a grep against file.list to filter out links and
directories and then finally a wc --lines to count the
number of line (i.e. the number of files). This couldbe
done with a one-line shell script with a couple of pipelines.
Of course you'd have to cd to the top directory level you
wanted to include and probably also be root.
- Bill B.
---------------------------------
William J.A. Brillinger
Precision Design Co.
E-Mail: mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net
_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users