for d in `find . -type d -maxdepth 1`; do echo $d, `ls "$d" | wc -l`; done
出力結果
./dir1,102
./dir2,43
./dir3,54
More than 5 years have passed since last update.
for d in `find . -type d -maxdepth 1`; do echo $d, `ls "$d" | wc -l`; done
出力結果
./dir1,102
./dir2,43
./dir3,54
Register as a new user and use Qiita more conveniently