The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-16-2008
penchal_boddu penchal_boddu is offline
Registered User
  
 

Join Date: Apr 2008
Location: Bangalore
Posts: 127
Hi try this,

If ur in folder1, then

echo " Filename Matched(Y/N) " >> Output_file

for i in `ls`
do
diff $i path_0f_folder2/.
if [ $? -eq 0 ]
then
echo " $i Y" >> Output_file
else
echo " $i N" >> Output_file
fi
done


Thanks
Penchal