Article Title: count the number of files in Linux and SVN. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Count the number of files in the current directory (including directories ):
Find. | grep-v \/$ | wc-l
These two are searched from others:
File tree:
Find.-print 2>/dev/null | awk '! /\. $/{For (I = 1; I
Directory tree:
Find.-type d-print 2>/dev/null | awk '! /\. $/{For (I = 1; I
Count the total number of files in the SVN Library:
Svn list-R http: // 192.168.1.11/svn/reponame/J2EE11 | wc-l
Http: // 192.168.1.11/svn is the root of svn server/reponame is the Library/J2EE11 is the path
This will include the Directory
Filter Directories
Svn list-R svn_server_addr/svnrepo/folder | grep-v \/$ | wc-l