How does one make a unix shell script with an if statement in it? (my code included)

LordJezo

Banned
May 16, 2001
8,140
1
0
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?