# 代码行数统计方式
## 按照文件类型
```
在想要统计的目录的根目录执行
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