博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux下的代码量计算
阅读量:4141 次
发布时间:2019-05-25

本文共 214 字,大约阅读时间需要 1 分钟。

利用find  xargs  wc可方便的计算出某个目录下源文件的代码量
find sourcecode_dir_path -type f -name "*.c" -print0 | xargs -0 wc -l
-print0选项使得find找到的目标文件名用'\0'分割

xargs的-0选项用'\0'分隔符从find的结果中提取参数,然后传给wc计算

快速查看一个命令的帮助文档的行数

man command | cat -n

转载地址:http://mgzti.baihongyu.com/

你可能感兴趣的文章
apache和tomcat整合
查看>>
java虚拟机错误问题
查看>>
oracle建立表空间
查看>>
oracle分区表的性能提升
查看>>
"Cannot allocate memory" OutofMemory when call Ant to build Polish project in Tomcat
查看>>
dumpcap抓包(python)
查看>>
查看文件是否被其他进程访问
查看>>
字符编码详解
查看>>
python使用dpkt分析wireshak报文(Modbus规约)
查看>>
css中的IFC
查看>>
CentOS 6.5下 mysql用户root登录不了
查看>>
windows + tomcat 部署web服务 http 改为https访问方法
查看>>
Windows系统下Apache 服务器启动以及过程中产生问题的解决办法
查看>>
Oracle服务说明
查看>>
异常收集(三):Missing artifact com.oracle:ojdbc6:jar:1.0 两种解决方案
查看>>
异常收集(四):Plugin execution not covered by lifecycle configuration
查看>>
异常收集(五):Io 异常: The Network Adapter could not establish the connection
查看>>
JSP中的转义字符
查看>>
SQLException: The user specified as a definer ('root'@'%') does not exist
查看>>
Linux 操作指令收集
查看>>