This may be pretty easy, but I am having trouble with it. I have an IF statement that I want to do and I want it to check to see if 4 different files are nonzero byte files. below is my if statement.
if [ -s /nfslogs/weblogs/access_log.`date +"%m%d"` ] ; then
How can I have it look at 4 files on the same IF statement? I tried separating it with a || but that didn't seem to work. I want to look at these files.
/nfslogs/weblogs/cona/agent_log.`date +"%m%d"`
/nfslogs/weblogs/cona/access_log.`date +"%m%d"`
/nfslogs/weblogs/cona/test_log.`date +"%m%d"`
/nfslogs/weblogs/cona/referer_log.`date +"%m%d"`
if [ -s /nfslogs/weblogs/access_log.`date +"%m%d"` ] ; then
How can I have it look at 4 files on the same IF statement? I tried separating it with a || but that didn't seem to work. I want to look at these files.
/nfslogs/weblogs/cona/agent_log.`date +"%m%d"`
/nfslogs/weblogs/cona/access_log.`date +"%m%d"`
/nfslogs/weblogs/cona/test_log.`date +"%m%d"`
/nfslogs/weblogs/cona/referer_log.`date +"%m%d"`