Tim Franzke wrote:
> 
> Hi,
> 
> Can anyone help me ? I want to do the following with the linux command line
> ( I have had a look at man and --help but still could not figure it out)
> 
> 1 - I want to get a complete recursive list of number of files, number of
> dirs and total byte size of a path.

Recursive list of all files in a path:

        ls -R

Number of files in the list:

        ls -lR | wc -l

Number of directories:
        
        find . -type d | wc -l

Size of the path:

        du .
 
> 2 - Want to delete all files of a particular name or extension in a
> recursive path e.g all *.rpm or all xyz*.rpm

        rm -r *.rpm
 
> I have looked all over the internet but cannot find any info about these
> commands or more complex ones. They only tell you very basic and simple
> stuff.

-- 
Steve Philp
Network Administrator
Advance Packaging Corp.
[EMAIL PROTECTED]

Reply via email to