How to giv two conditions in IF statement..??
Actually i need to satisfy both the condition..
lik i'm lookin for two different files.. and if BOTH the files r not present then it should run the followin script.. For example
inputfile1=data/in/inputfile1.txt
inputfile2=data/in/inputfile2.txt
if [ ! -f ${inputfile1} && ! -f ${inputfile2} ]
then
echo " "
echo "ERROR: Files not found."
echo " "
exit 1
fi
echo " "
echo "RUN SUCCESSFUL: Both Files found. "
echo " "
exit 1
Here even if the second file is not present its showing RUN SUCCESSFUL.. Please Help...
|