From: "Chris H" <newsgroupNOJUNK@NOJUNKhome.com>
Subject: Re: NEWBIE: Tally the files . . .
Date: 2000/04/17 [thread overview]
Message-ID: <HmAK4.73982$l41.238972@news1.sshe1.sk.home.com> (raw)
In-Reply-To: 8dacei$mdc$1@nnrp1.deja.com
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
<race9047@my-deja.com> 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.
next prev parent reply other threads:[~2000-04-17 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-15 4:00 NEWBIE: Tally the files . . race9047
2000-04-17 4:00 ` Chris H [this message]
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