From cc5bb1fb2f9956f74c7b055acba30abe48ef4842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=BC=9F=E8=B0=83=E8=B0=83=E2=84=A2?= Date: Tue, 2 Feb 2021 13:06:39 +0800 Subject: [PATCH] Update wc.md --- command/wc.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 +``` +