[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: quick howto-command questions?



If you're just interested in the current directory for #1, 3 and 4, they are
just variations of:

ls -la | wc -l

or 

ls -la *.c

If you want to look down a subdirectory tree use:

find . -name \*.c -print | wc -l
-mk

> -----Original Message-----
> From: David B. Harris [mailto:dbarclay10@yahoo.ca]
> Sent: Tuesday, March 20, 2001 6:38 AM
> To: john smith
> Cc: debian-user@lists.debian.org
> Subject: Re: quick howto-command questions?
> 
> 
> To quote "john smith" <inquirer23@hotmail.com>,
> # 1. How can I find out the total number of files (also hidden) in the
> current 
> # directory?
> # 
> # 2. How can I find out the total number of executable files (also
> hidden) in 
> # the current directory?
> # 
> # 3. how to find the total number of files of a given an extension? 
> # (ex."*.tar.gz")
> # 
> # 4.how to list files alphabetically that end in "*.c"?
> 
> You can use 'find' for all of those. 'man find' :)
> 
> David Barclay Harris, Clan Barclay
>     Aut agere, aut mori. (Either action, or death.)
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org
> 



Reply to: