当前位置:网站首页>How to count the number of project code lines
How to count the number of project code lines
2022-07-07 08:56:00 【beibeix2015】
find . "(" -name "*" ")" -print | xargs wc -l
1、 Open the terminal , use cd command Navigate to the directory where the project is located .
2、 Call the following command to count the number of lines and total number of each source code file
(1) Including the empty line ( The code lines of each file will be listed ):
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.c" -or -name "*.h" -or -name "*.xib" -or -name "*.pch" ")" -print | xargs wc -l
(2) Empty lines are not included ( Only the total number of rows will appear ):
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.c" -or -name "*.h" -or -name "*.xib" -or -name "*.pch" ")" -print | xargs grep -v "^$"|wc -l
// If there is anything else . Suffix files can continue to be added, such as -or -name "*.java"
3、 enter
grep -v "^$"
Removing blank line comments is also included in the code line count
linux Detailed explanation of pipeline symbols
linux In command “|” Pipe symbol
边栏推荐
- 平台化,强链补链的一个支点
- Count sort (diagram)
- Mock. JS usage details
- ncs成都新電面試經驗
- [Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
- Recommended by Alibaba P8, the test coverage tool - Jacobo is very practical
- Greenplum 6.x build_ Environment configuration
- LeetCode 736. Lisp 语法解析
- 硬核分享:硬件工程师常用工具包
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
猜你喜欢
Greenplum 6.x version change record common manual
Lenovo hybrid cloud Lenovo xcloud: 4 major product lines +it service portal
LED模拟与数字调光
Greenplum 6.x build_ Environment configuration
【踩坑】nacos注册一直连接localhost:8848,no available server
[MySQL] detailed explanation of trigger content of database advanced
Greenplum 6.x monitoring software setup
硬核分享:硬件工程师常用工具包
LeetCode 715. Range module
Led analog and digital dimming
随机推荐
Nanjing commercial housing sales enabled electronic contracts, and Junzi sign assisted in the online signing and filing of housing transactions
GoLand set goproxy
硬核分享:硬件工程师常用工具包
How to add a mask of a target in a picture
面试题:高速PCB一般布局、布线原则
OpenGL帧缓冲
Greenplum 6.x reinitialization
Un salaire annuel de 50 W Ali P8 vous montrera comment passer du test
Greenplum6.x-版本变化记录-常用手册
RuntimeError: Calculated padded input size per channel: (1 x 1). Kernel size: (5 x 5). Kernel size c
Markdown editor Use of MD plug-in
Isomorphic C language
Goldbach conjecture C language
selenium自动化集成,八年测试经验软测工程师,一篇文章带你学懂
如何在图片的目标中添加目标的mask
let const
LED模拟与数字调光
H3C VXLAN配置
leetcode135. Distribute candy
【MySQL】数据库进阶之触发器内容详解