From 208700ae85edce187727dc2fd84d454375f27a61 Mon Sep 17 00:00:00 2001 From: TpaeFawzen <30316430+GH-TpaeFawzen@users.noreply.github.com> Date: Sun, 6 Dec 2020 21:48:39 +0900 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=96=87=E4=BB=B6=E8=AE=A1?= =?UTF-8?q?=E6=95=B0.sh:=20$[=20=E2=80=A6=20]=20seemed=20to=20be=20depreca?= =?UTF-8?q?ted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced it with $(( … )) --- 正则表达式/目录文件计数.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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