count script #!/bin/sh numOfArgs=$# if [ $numOfArgs -ne 1 ]; then echo -e "Usage: \nbash $0 dirForCount" exit -1 fi # args ROOTDIR=$1 # core part find $ROOTDIR -maxdepth 1 -type d | sort | while read dir; do count=$(find "$dir" -type f | wc -l) echo "$dir: $count" done implement
Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: mysql join query (left join, right join, inner join)
>>: How to import js configuration file on Vue server
Preface Recently, I have been helping clients con...
There are too many articles about xhtml+css websi...
1. Top-level usage 1. Install cnpm npm i -g cnpm ...
webkit scrollbar style reset 1. The scrollbar con...
Table of contents Preface: 1. Concept 2. The bene...
Method 1: Use CSS overflow omission to solve The ...
Preface As a heavy user of front-end frameworks, ...
Preface The requirement implemented in this artic...
Table of contents Preface Check and uninstall Ope...
Let me first introduce an interesting property - ...
max_allowed_packet is a parameter in MySQL that i...
The css animation of the rotating flip effect, th...
1.# # represents a location in a web page. The ch...
nginx traffic control Rate-limiting is a very use...
This article example shares the specific code of ...