From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,38b67ea6d980ade5,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: f72b0,38b67ea6d980ade5,start X-Google-Attributes: gidf72b0,public X-Google-Thread: 1020c6,38b67ea6d980ade5,start X-Google-Attributes: gid1020c6,public X-Google-Thread: fa528,38b67ea6d980ade5,start X-Google-Attributes: gidfa528,public From: race9047@my-deja.com Subject: NEWBIE: Tally the files . . . Date: 2000/04/15 Message-ID: <8dacei$mdc$1@nnrp1.deja.com>#1/1 X-Deja-AN: 611582884 X-Http-Proxy: 1.1 x26.deja.com:80 (Squid/1.1.22) for client 63.11.185.32 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sat Apr 15 18:29:52 2000 GMT X-MyDeja-Info: XMYDJUIDrace9047 Newsgroups: comp.unix.questions,comp.unix.admin,comp.unix.misc,comp.unix.tru64 X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt; MSNIA) 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.