[Ilugc] Re: ilugc Digest, Vol 10, Issue 13
Muthukumar
ramana_muthu at yahoo.co.in
Fri Mar 4 14:46:37 IST 2005
> Please explain the use of "-a" there
Plz. when ever you start a thead then use appropriate subject to that.
To explain the usage of -a in test command,
/tmp/tst is a file
/tmp/tst.log is a file
Checking as,
# test -f /tmp/tst -a -f /tmp/tst.log
# echo $?
# 0
# test -f /tmp/nofile
# echo $?
# 1
-a is used to combine to test operationgs. -o is used for OR operation. -a is having more precedence than -o
HTH.
Thanks,
-Muthukumar.
More information about the ilugc
mailing list