2016-07-24 23 views

回答

0

使用&&测试多个条件。

if [ $(getent group administrators) ] && [ $(getent group students) ] 
then 
    echo The groups administrators and students exit 
else 
    echo The groups administrators and students do not both exist 
fi 
+0

非常感谢,它的工作原理! :) –

相关问题