hello Adam,

 you said that you know wc,...

 didn't you try 

    ls | wc

 i.e 'ls' piped to wc.

 i think it works(atleast for me).

 or you try 

    ls -l | wc

 i think you want to count the no of files in a

 directory. these will count all the files including

 the directories. if you want to count just the files

 and not directories, i have to think of someything

 else.

 think it helps.

                                                Madhu P   
   

On Thu, 14 Sep 2000, Adam Sleight wrote:

> can't think today...how doe one count the number of files within a
> directory...yes I know du, df, and wc for words in a file.  
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to