Re: FN-FORUM: quick linux shell question
date posted 28th September 2006 13:19
On Thursday 28 September 2006 13:30, Mark Bell wrote:
> 'cd' into a directory, it's got 000's of file in it
>
> How can I quickly get a file count (ie: this dir contains 1345 files) ?
>
Pipe the output of ls into wc (word count, not water closet ;-)
$ ls | wc
the first figure is the number of files.
Cheers,
Richard
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard Lewis
Sonic Arts Research Archive
http://www.sara.uea.ac.uk/
JID: [EMAIL REMOVED]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-