I wrote the below small shell script. However when i run it am getting the error ctrlM_chk_input_file.sh[5]: find: not found
but I thought the backtics will make the find statement to be run as a unix command. Am I missing something?
PATH="/main/nedcor/flexcube"
cd $PATH
'pwd'
DIR_LIST=`find . -name "INPUT"`
for INPUT_PATH in $DIR_LIST
do
RESULT=`ls -A $INPUT_PATH | grep -v BKUP`
echo $RESULT
if [ -z $RESULT ] ;
then
echo "No Files found"
exit 0
else
echo file $RESULT found
exit 1
fi
done