How to count the number of files in a repository folder

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

To count the number of files of a repository folder, access its folder and create a file with this content:

#!/bin/bash
# count inodes for each directory
LIST=`ls`
for i in $LIST; do
echo $i
find $i -printf "%i\n" | sort -u | wc -l
done

This will count how many files are content in each folder in the repository.

 

 

最終更新日 2015 年 9 月 16 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.