Thor wrote:
> Roy Schestowitz wrote:
>
>> For over a year I've been struggling to find out, either by Web searches
>> or man pages, how to get the number of files in a directory and its
>> subdirectories. KDE doesn't provide anything which does that as far as I
>> can tell.
>>
>> The only way I managed to do this is:
>>
>> du -all >temp
>> wc temp
>> rm temp
>>
>> But there must be an easier way. I really need to get the number of files
>> quite often. Am I missing something?
>>
>> Thanks,
>> Roy
>>
>
> Well you could open konqueror and right click on the directory and have a
> look at it's properties.
It is KDE 3.1 so the window does not have this among the properties.
I have just set up an alias...
alias nfiles='du -all >~/temp; wc ~/temp; rm ~/temp;'
I hope it won't be harmful or risky.
Roy
--
Roy S. Schestowitz
http://Schestowitz.com
|
|