shell scripts issue

From: Ram <krishna000_at_gmail.com>
Date: Thu, 26 Nov 2009 21:51:42 -0800 (PST)
Message-ID: <6b4648fd-cdc1-4acf-86be-5eba75aba770_at_y32g2000prd.googlegroups.com>



Hi all,

My scripts looks like this .. when i execute this script its says file does not exist even though file is present physically and if the file does not present in the file system then the output is null.

I am wrong somewhere .. ??

echo " enter file "
read name
for i in `find /apps12i -type f -name $name -printf %f ` do
if [ -e $i ]
then
echo "file exists"
else
echo "not exists "
fi
done

Regards Received on Thu Nov 26 2009 - 23:51:42 CST

Original text of this message