由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Another simple question
相关主题
How to set environment variables for CGI scripts?Help, Simple stupid Vi question
A question about awkSimple Question
How to redirect error messages to a file?can't run a simple c code
Re: hwo to cp a linksimple question
what type?wait on line: simple question
substr in shella simple perl problem?
simple simple questionA simple question
how come this stupid question?mailx = set sender's anme and reply address
相关话题的讨论汇总
话题: logfile话题: another话题: simple话题: question话题: what
进入Unix版参与讨论
1 (共1页)
k******r
发帖数: 2300
1
[[! -s $LOGFILE ]] && touch $LOGFILE
What does it mean? Thanks a lot.
D**e
发帖数: 10169
2
如果LOGFILE不存在,摸摸它。

【在 k******r 的大作中提到】
: [[! -s $LOGFILE ]] && touch $LOGFILE
: What does it mean? Thanks a lot.

x******g
发帖数: 3952
3
-s: File is not zero size

【在 D**e 的大作中提到】
: 如果LOGFILE不存在,摸摸它。
k******r
发帖数: 2300
4
Thanks for replying. Why'd we need double bracket instead of single bracket
in[[! -s $LOGFILE ]]?

【在 x******g 的大作中提到】
: -s: File is not zero size
x******g
发帖数: 3952
5
http://www.tldp.org/LDP/abs/html/testconstructs.html#DBLBRACKETS

【在 k******r 的大作中提到】
: Thanks for replying. Why'd we need double bracket instead of single bracket
: in[[! -s $LOGFILE ]]?

1 (共1页)
进入Unix版参与讨论
相关主题
mailx = set sender's anme and reply addresswhat type?
Re: Another simple question!substr in shell
【散货求购】nook simple touch 一个起 @48$ eachsimple simple question
分享下小帐户炒垃圾的经验how come this stupid question?
How to set environment variables for CGI scripts?Help, Simple stupid Vi question
A question about awkSimple Question
How to redirect error messages to a file?can't run a simple c code
Re: hwo to cp a linksimple question
相关话题的讨论汇总
话题: logfile话题: another话题: simple话题: question话题: what