将询问用户 2 个变量,即文件夹的名称和他们想要创建的文件夹的数量。所以如果用户输入sea和3,输出应该是:sea,sea2,sea3
\nread -p "Enter the name of the folder: " NAMEFOLDER\nread -p "How many copies of this folder do you want?: " NUMFOLDER\n\ni=0\n\nuntil [ $i -gt $NUMFOLDER ]\n\ndo\nmkdir $(($NAMEFOLDER))\n((i=i+1))\ndone\nRun Code Online (Sandbox Code Playgroud)\n然后我遇到了这个问题
\n"mkdir: cannot create directory \xe2\x80\x980\xe2\x80\x99: File exists"\nRun Code Online (Sandbox Code Playgroud)\n我被困在这个问题上。
\n