[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
相关文章
相关标签/搜索