亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 1794 | 回復(fù): 8
打印 上一主題 下一主題

[ condition ] 問(wèn)題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-01-06 20:19 |只看該作者 |倒序?yàn)g覽
[ -h "$element" -a ! -e "$element" ]
[ -f /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]

沒(méi)見(jiàn)過(guò)這樣的用法,請(qǐng)教一下是什么意思呀?

論壇徽章:
3
戌狗
日期:2014-09-10 17:07:162015年辭舊歲徽章
日期:2015-03-03 16:54:15wusuopu
日期:2016-06-17 17:43:45
2 [報(bào)告]
發(fā)表于 2009-01-06 20:25 |只看該作者
原帖由 camperbird 于 2009-1-6 20:19 發(fā)表
[ -h "$element" -a ! -e "$element" ]
[ -f /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]

沒(méi)見(jiàn)過(guò)這樣的用法,請(qǐng)教一下是什么意思呀?

man bash
       test expr
       [ expr ]
              Return  a  status  of  0 or 1 depending on the evaluation of the
              conditional expression expr.  Each operator and operand must  be
              a  separate argument.  Expressions are composed of the primaries
              described above under CONDITIONAL EXPRESSIONS.   test  does  not
              accept any options, nor does it accept and ignore an argument of
              -- as signifying the end of options.

              Expressions may  be  combined  using  the  following  operators,
              listed in decreasing order of precedence.
              ! expr True if expr is false.
              ( expr )
                     Returns  the value of expr.  This may be used to override
                     the normal precedence of operators.
              expr1 -a expr2
                     True if both expr1 and expr2 are true.
              expr1 -o expr2
                     True if either expr1 or expr2 is true.

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2009-01-06 20:31 |只看該作者
暈 -a :and

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2009-01-06 20:32 |只看該作者
-h(huán)是判斷是否存在并且是符號(hào)連接   -e判斷是否存在

/usr/bin/netscape存在并且是普通文件 and /usr/share/doc/HTML/index.html存在并且是普通文件

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2009-01-06 20:34 |只看該作者
主要是中間-a不知道..

論壇徽章:
3
戌狗
日期:2014-09-10 17:07:162015年辭舊歲徽章
日期:2015-03-03 16:54:15wusuopu
日期:2016-06-17 17:43:45
6 [報(bào)告]
發(fā)表于 2009-01-06 20:35 |只看該作者
原帖由 camperbird 于 2009-1-6 20:34 發(fā)表
主要是中間-a不知道..

就是and
expr1 -a expr2  : True if both expr1 and expr2 are true.

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2009-01-06 20:38 |只看該作者

回復(fù) #4 justlooks 的帖子

溫習(xí)一下。

論壇徽章:
1
丑牛
日期:2014-08-07 17:07:05
8 [報(bào)告]
發(fā)表于 2009-01-06 22:08 |只看該作者
提示: 作者被禁止或刪除 內(nèi)容自動(dòng)屏蔽

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2009-01-07 08:47 |只看該作者

回復(fù) #8 ILoveMK 的帖子

可以,但是有區(qū)別,具體情況可以看十三問(wèn)。呵
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP