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 -->
  #3 (permalink)  
Old 09-04-2001
akpopa akpopa is offline
Registered User
 

Join Date: Aug 2001
Location: South Carolina
Posts: 18
Thank you for your response.


I made the changes you suggested and now I have the syntax error at line 999 : 'if' unmatched. Now the statement looks like:

if ["$all_recs" = "NEW"] then

commands

fi;

Also, I am coding behind someone and many of the if statements they used do not have the []'s around them. They are formatted like:

if test $# -ne 3;
then

commands

fi;

--or--

if test $file_ext = "file_ext";
then
continue;
fi;

Why would they above work, but not the one I did?

Thanks Again,

Amber Taylor