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: f72b0,38b67ea6d980ade5 X-Google-Attributes: gidf72b0,public X-Google-Thread: 1020c6,38b67ea6d980ade5 X-Google-Attributes: gid1020c6,public X-Google-Thread: fa528,38b67ea6d980ade5 X-Google-Attributes: gidfa528,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: NEWBIE: Tally the files . . . Date: 2000/04/17 Message-ID: <8ddr90$eii$1@news.ndsu.nodak.edu>#1/1 X-Deja-AN: 612061327 Content-Transfer-Encoding: 7bit References: <8dacei$mdc$1@nnrp1.deja.com> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: news.ndsu.nodak.edu 955936864 14930 134.129.106.23 (17 Apr 2000 02:01:04 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 17 Apr 2000 02:01:04 GMT Newsgroups: comp.unix.questions,comp.unix.admin,comp.unix.misc,comp.unix.tru64 In article <8dacei$mdc$1@nnrp1.deja.com>, wrote: > 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 would imagine your instructor also expects you to do your own work. :-) Hopefully you've learned how to read man pages (or GNU info documentation, if that's what you system has instead) by this point. If you provide me with your instructor's email address, so I can contact him or her and verify that it's ok for you to have hints from the peanut gallery, I would happily provide you with some hints on how I would do it. Tim -- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J1, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164