My line says :
if [ -f ls /webtrends/SUN/wileycom/edch/${FILE1} | -o -f ls /webtrends/SUN/wileycom/edch/${FILE2} ]; then echo hi; fi
What want that to do is..
if FILE1 or FILE2 exists then (in this case) echo hi.
The -o says it is the OR operator..
When i run the script the unix shell comes back saying:
[ webtrend@jws-jpcms ] $ check_logs.sh
./check_logs.sh: test: ] missing
./check_logs.sh: -o: not found
What did I do wrong?
if [ -f ls /webtrends/SUN/wileycom/edch/${FILE1} | -o -f ls /webtrends/SUN/wileycom/edch/${FILE2} ]; then echo hi; fi
What want that to do is..
if FILE1 or FILE2 exists then (in this case) echo hi.
The -o says it is the OR operator..
When i run the script the unix shell comes back saying:
[ webtrend@jws-jpcms ] $ check_logs.sh
./check_logs.sh: test: ] missing
./check_logs.sh: -o: not found
What did I do wrong?