I have a piece of code like this:
count=0
until [ -f $filename -o $count -ge 60 ]
do
count=$((count+1))
sleep 1
done
I know [ -f $filename -o $count -ge 60 ]
is a test command, "-f $filename" tests if the file exists or not, "$count -ge 60" tests if count is greater than or equal to 60, what does "-o" mean?
I googled, can't find the answer, anyone can help?
help
command for builtins:help test
(help [
will tell you it's actuallytest
). – muru Sep 22 '14 at 18:53