当前位置:网站首页>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
边栏推荐
- Unity Shader入门精要初级篇(一)-- 基础光照笔记
- Skills that testers must know: Selenium's three waiting ways are interpreted clearly
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
- Troublesome problem of image resizing when using typora to edit markdown to upload CSDN
- Gson converts the entity class to JSON times declare multiple JSON fields named
- 2022-07-06 Unity核心9——3D动画
- 面板显示技术:LCD与OLED
- systemd
- 使用Typora编辑markdown上传CSDN时图片大小调整麻烦问题
- 如何在图片的目标中添加目标的mask
猜你喜欢
oracle一次性说清楚,多种分隔符的一个字段拆分多行,再多行多列多种分隔符拆多行,最终处理超亿亿。。亿级别数据量
[Yugong series] February 2022 U3D full stack class 006 unity toolbar
LeetCode 736. LISP syntax parsing
Introduction to data fragmentation
Digital triangle model acwing 275 Pass a note
UnityShader入门精要个人总结--基础篇(一)
Led analog and digital dimming
Recommended by Alibaba P8, the test coverage tool - Jacobo is very practical
ESP32-ULP协处理器低功耗模式RTC GPIO中断唤醒
Pointer advanced, string function
随机推荐
Analysis of using jsonp cross domain vulnerability and XSS vulnerability in honeypot
oracle一次性说清楚,多种分隔符的一个字段拆分多行,再多行多列多种分隔符拆多行,最终处理超亿亿。。亿级别数据量
What are the advantages of commas in conditional statements- What is the advantage of commas in a conditional statement?
[step on the pit] Nacos registration has been connected to localhost:8848, no available server
Personal deduction topic classification record
Goldbach conjecture C language
使用Typora编辑markdown上传CSDN时图片大小调整麻烦问题
Problems encountered in the use of go micro
Analysis of abnormal channel number information before and after AGC re signature service
【ChaosBlade:节点磁盘填充、杀节点上指定进程、挂起节点上指定进程】
Other 7 features of TCP [sliding window mechanism ▲]
数据分片介绍
OpenGL frame buffer
Greenplum6.x搭建_安装
数字三角形模型 AcWing 1027. 方格取数
Nanjing commercial housing sales enabled electronic contracts, and Junzi sign assisted in the online signing and filing of housing transactions
Common operating commands of Linux
年薪50w阿裏P8親自下場,教你如何從測試進階
MAC OSX php dyld: Library not loaded: /usr/local/xxxx. dylib
leetcode134. gas station