[SHELL]結構化命令之條件語句

1.if-then語句  #!/bin/bash username="root" if grep $username /etc/passwd then echo "there is root" fi     2.if-then-else #!/bin/bash username="hahaha" if grep $username /etc/passwd then echo "th
相關文章
相關標籤/搜索