您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
|
- #!/usr/bin/env bash
-
- while true
- do
- COUNT=$(find "$1" -type f |wc -l)
- if [ $COUNT -ne 0 ] ; then
- echo "Directory $1 is not empty ($COUNT files remaining). Waiting 5 seconds..."
- sleep 5
- else
- echo "Directory $1 is empty!"
- break
- fi
- done
|