The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-23-2008
abhisek.says abhisek.says is offline
Registered User
  
 

Join Date: May 2008
Posts: 9
Smile checking for file existence first

Hi,

First yo chech for the file existence and then

FLAG=0;
while read file
do
FLAG =1;
done < input_file
echo "$FLAG"

I think this should work...