#!/bin/bash # 设置文件夹路径 dir_path="/path/to/dir" # 计算文件数量 num_files=$(find ${dir_path} -type f | wc -l) echo "Number of files in ${dir_path}: ${num_files}"
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8