zl程序教程

您现在的位置是:首页 >  其他

当前栏目

软著统计代码行数

2023-04-18 14:55:59 时间

请统计代码行数

统计代码行数

find mall-imeihao-h5      ( -name '*.js' -o -name '*.json' -o -name '*.wxss' -o -name '*.wxml' ) | xargs cat |grep -v ^$| wc -l
  • .wxml .wxss .json .js 为源码文件扩展名,根据需求替换

需要排除的目录

find  mall-imeihao 
( -path ./web -o -path ./runtime -o -path ./config ) -prune -o 
( -name "*.php" -o -name "*.js" -o -name "*.css" -o -name "*.scss" ) 
|  xargs cat |grep -v ^$| wc -l
  • web runtime config 为需要排除的目录

导入文档

导入文档格式

find mall-imeihao-reception  ( -name '*.py'  ) | xargs cat |grep -v ^$| > mall-imeihao-reception.docx