[SUMMARY] counting the number of files under an entire directory tree
kdea_at_alpine-la.com
Date: 05/26/05
- Previous message: kdea_at_alpine-la.com: "counting the number of files under an entire directory tree"
- In reply to: kdea_at_alpine-la.com: "counting the number of files under an entire directory tree"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 May 2005 10:20:15 -0700 To: tru64-unix-managers@ornl.gov
Wow,
Less than 5 minutes and got several replies. The simpliest which I needed,
to count EVERYTHING under a directory was to use: find <directory> | wc -l
There are other ways to only count symlinks, directories, or files using
'find'. For example only looking for files, use: find /usr -type f | wc
-l
Thanks to everyone who replied with the answers!
Kevin
---original question---
We have a directory with a huge number of directories and subdirectories,
sub-subdirectories, and files. Does anyone know a command or a series of
piped commands (presumably including 'wc') to count exactly the number of
files and directories under a specific directory?
ES40 running Tru64 5.1a.
- Previous message: kdea_at_alpine-la.com: "counting the number of files under an entire directory tree"
- In reply to: kdea_at_alpine-la.com: "counting the number of files under an entire directory tree"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]