shell编程——if语句_macg_新浪博客

shell编程——if语句_macg_新浪博客

瀏覽:1131
日期:2025-10-04
2009年8月6日 ... if command then if 函数 then, 命令执行成功,等于返回0 (比如grep ,找到匹配 ... vi testsh.sh #!/bin/sh cat 111-tmp.txt | grep ting1 if [ $? -eq 0 ] then...看更多