Unix/Linux Go Back    

Comparing Two Strings

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member Anji Regarding:
Comparing Two Strings.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 01-09-2008   -   Original Discussion by Anji
Anji's Unix or Linux Image
Anji Anji is offline
Registered User
Join Date: Jan 2008
Last Activity: 10 December 2010, 2:38 AM EST
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your reply...
Sorry to say that
I have tried with the command which you have given.
but also I am getting the same error....

if[ "$file1" = "Sector.sql" -o "$file1" = "Currency.sql"]; then
cat $file1 | sed -e "s/DB_NAME/${DBNAME}/g" > $LOG_DIR/$file1
echo "$LOG_DIR/$file1 file::::::::"
rm $LOG_DIR/$file

. $file1

./BatchJobs.sh: line 101: syntax error near unexpected token `then'
./BatchJobs.sh: line 101: ` if[ "$file1" = "Sector.sql" -o "$file1" = "Currency.sql"]; then'

Can u help me out plz....