diff --git a/command/wc.md b/command/wc.md index 169bc5dc77..c7241b37fb 100644 --- a/command/wc.md +++ b/command/wc.md @@ -65,4 +65,20 @@ expr $(ls -l | wc -l) - 1 8 ``` +统计当前目录下的所有文件行数及总计行数 + +```shell +[root@centos7 ~]# wc -l * + 21 LICENSE + 270 README.md +wc: example: read: Is a directory + 785 lerna-debug.log + 25 lerna.json +wc: node_modules: read: Is a directory + 23603 package-lock.json + 79 package.json + 3 renovate.json + 24786 total +``` +