The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-27-2007
pinky pinky is offline
Registered User
 

Join Date: Jul 2007
Posts: 33
Thanks for the solution
It worked
I am just wondering whether the ; at the end of if (if [ ];then ) is necessary or notthe reason why I was asking is it worked with out ; and with ; so just wondering is there anything that I am missing if I don't keep the ; at the end of if

Is there any difference between

if [ ];then

fi
and

if [ ]
then

fi



Thanks in advance
Pinky
Reply With Quote