Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: race9047@my-deja.com
Subject: NEWBIE: Tally the files . . .
Date: 2000/04/15	[thread overview]
Message-ID: <8dacei$mdc$1@nnrp1.deja.com> (raw)

I need help fine tuning the following command.

     find|sort|uniq| -c|awk '{print $1,$2}'

What I am suppose to do is "write a script that will count the number
of files in a directory.  Count only the files and not the
subdirectories".

I have gotten close using variations of this command, but what I have
most trouble doing is getting an actual count that will look something
like this

1 filnameA
2 filenameB
etc.

Thanks for your help,

Race


Sent via Deja.com http://www.deja.com/
Before you buy.



             reply	other threads:[~2000-04-15  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-15  4:00 race9047 [this message]
2000-04-17  4:00 ` NEWBIE: Tally the files . . Chris H
2000-04-17  4:00 ` Tim Mooney
2000-05-09  4:00 ` Timothy Lehto
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox