web-leader

# 代码行数统计方式

 

## 按照文件类型

 

```

在想要统计的目录的根目录执行

find ./ -name "*.vue" | xargs wc -l

```

 

## 按照目录

 

```

在想要统计的根目录执行脚本countLines.sh

chmod 777 countLines.sh

./countLines.sh

若想收集制定目录的代码数则

./countLines.sh FED/src FED/router

```

find ./ -name "*.wxml" | xargs wc -l

find ./ -name "*.wxss" | xargs wc -l

find ./ -name "*.js" | xargs wc -l

分类:

技术点:

相关文章:

  • 2022-02-09
猜你喜欢
  • 2021-11-11
  • 2021-04-20
  • 2021-11-11
相关资源
相似解决方案