--- Lance Hoffmeyer <[EMAIL PROTECTED]> wrote: 
> How can I get a count of the number of files in a directory?
> directory + subdirectoies?

Crudely:

ls -1 | wc -l

(note the "-1" option to 'ls' is hyphen-one, NOT lower-case L, which is
what the option to 'wc' is).

-- Thomas Adam

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


        
        
                
___________________________________________________________ALL-NEW Yahoo! Messenger - 
all new features - even more fun! http://uk.messenger.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to