From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,38b67ea6d980ade5 X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1020c6,38b67ea6d980ade5 X-Google-Attributes: gid1020c6,public X-Google-Thread: f72b0,38b67ea6d980ade5 X-Google-Attributes: gidf72b0,public X-Google-Thread: fa528,38b67ea6d980ade5 X-Google-Attributes: gidfa528,public From: "Chris H" Subject: Re: NEWBIE: Tally the files . . . Date: 2000/04/17 Message-ID: #1/1 X-Deja-AN: 612151635 Content-Transfer-Encoding: 7bit References: <8dacei$mdc$1@nnrp1.deja.com> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: abuse@home.net X-Trace: news1.sshe1.sk.home.com 955961895 24.66.250.174 (Mon, 17 Apr 2000 01:58:15 PDT) Organization: @home.com X-MSMail-Priority: Normal MIME-Version: 1.0 NNTP-Posting-Date: Mon, 17 Apr 2000 01:58:15 PDT Reply-To: "Chris H" Newsgroups: comp.unix.questions,comp.unix.admin,comp.unix.misc,comp.unix.tru64 check the "find" man page.. there is an option that you can use to find "ordinary file" only ;-) you are almost there...keep it up... CH wrote in message news:8dacei$mdc$1@nnrp1.deja.com... > 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.