用戶名添加錯誤
./addu.sh: line 6: [: too many arguments
[root@localhost shelltest]# ./addu.sh?
Please input your user name:? Finley
Please input your the number of users: 20
Please input your password for the users: user
./addu.sh: line 6: [: too many arguments
[root@localhost shelltest]#?
2019-08-25
too many arguments的意思是:參數太多。line6表示:第六行。仔細看看你的腳本第六行,是不是有多余的符號把你的參數隔開了,使得參數看起來太多了。
2019-08-20
把腳本貼出來啊,要不然誰能幫你看?