Home » Infrastructure » Unix » Shell script issue while finding files (Linix)
Shell script issue while finding files [message #432873] Thu, 26 November 2009 23:21 Go to next message
bryanadams
Messages: 9
Registered: September 2009
Location: Bangalore
Junior Member
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

Bryan.
Re: Shell script issue while finding files [message #432874 is a reply to message #432873] Thu, 26 November 2009 23:40 Go to previous message
Michel Cadot
Messages: 58521
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.

Regards
Michel
Previous Topic: unix server
Next Topic: Unable to use ORAENV_ASK in shell script
Goto Forum:
  


Current Time: Wed Jul 23 22:02:06 CDT 2014

Total time taken to generate the page: 0.10835 seconds