📌  相关文章
📜  检查文件夹中的文件数量 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:38.809000             🧑  作者: Mango

代码示例1
$ find assets -type f  | wc -l # count the total number of asset files
      20

$ find assets -type f -name '*.json' | wc -l # count the metadata files
      10

$ find assets -type f -name '*.png' | wc -l  # count the images files
      10
      
## confirm those numbers are all what you would expect.