Re: quick howto-command questions?
Hi John,
I think i know some of these....
1) ls -a > filecount && wc -l filecount
2) find /<your_dir> -perm 0755 -print > exec_count && wc -l
exec_count (i think this'll work.. I didn't try it. man find
for more info)
3) ls *.tar.gz > tar.gz_count && wc -l tar.gz_count
4) ls *.c | sort
'|' is know as the 'pipe symbol'..... in case you didn't alreay
know.
Hope that helps!
Jimmy Richards
On 20 Mar 2001 09:12:41 +0000, john smith wrote:
> Hi,
>
> Some quick questions;
>
> 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"?
>
>
> please don't forget to CC me.
>
> TIA,
>
>
> JOHN
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: