终端cd 到想要统计的文件夹根目录,输入以下命令即可wc -l 文件名wc -r 文件名wc 文件名find.-name"*.m"-or-name"*.h"-or-name"*.xib"-or-name"*.c"|xargs wc-l