On 2004.08.19 08:51 Voytek Eymont wrote:
I want to check if two files exists, if so, run awstats, how
do I put an 'and', and, is that the way to check it ?
-f = file exists and is regular
-d = file is a directory
-r = file exists and is readable
-s = file exists and is not empty
-w = file exists and can be written to
-x = file exists and is executable
-a = and
-o = or
[put both tests inside the one set of brackets, separated by -a or -o]
see "man test"
HTH,
Robert Thorsby
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html