diff --git a/正则表达式/目录文件计数.sh b/正则表达式/目录文件计数.sh index 689ca6f..56f578a 100644 --- a/正则表达式/目录文件计数.sh +++ b/正则表达式/目录文件计数.sh @@ -10,7 +10,7 @@ do echo $check for item in $check do - count=$[ $count + 1 ] + count=$(( $count + 1 )) done echo "$directory - $count" count=0