Home Man
Search
Today's Posts
Register

Post questions about C, C++, Java, SQL, and other programming languages here.

Whats wrong with this If statement?

Tags
linux, programming

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 06-13-2017
Whats wrong with this If statement?

Hi
I am pretty new to bash scripting.I am trying to write the if statement in bash and it give me error. Can you please help me what I am doing wrong in If statement?

Code:
Code:
if [$DB_SIZE%$kk==0] && [$DB_SIZE/$kk<=$M] && [$DB_SIZE/$kk >= $divide]
then

			fector=$kk;
			divide=$DB_SIZE/$kk;
			echo "factor value:$fector"
			echo"divide value:$divide"
			

fi

line 1: [1024%2==0]: command not found

# 2  
Old 06-13-2017
Double posted topic.

Continue here.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Whats wrong with this If statement? Gevni Shell Programming and Scripting 4 06-13-2017 01:22 PM
Whats wrong with this If statement? Gevni UNIX for Beginners Questions & Answers 1 06-13-2017 09:40 AM
Whats wrong with this if-else skyineyes UNIX for Dummies Questions & Answers 8 12-12-2011 11:13 AM
Whats wrong with the following Larry_1 Homework & Coursework Questions 1 12-16-2010 02:51 PM
whats wrong with this? ferrycorsten73 UNIX for Dummies Questions & Answers 1 04-07-2009 02:41 PM
whats wrong with this find statement ? crackthehit007 Shell Programming and Scripting 2 03-26-2009 04:52 AM
whats wrong in this pls help how to take $i value ? santosh1234 Shell Programming and Scripting 3 12-26-2008 08:28 AM
tell me whats wrong with this nadman123 Shell Programming and Scripting 1 04-14-2008 11:58 PM
tell me whats wrong in this? nadman123 Shell Programming and Scripting 1 04-10-2008 01:11 AM
whats wrong with this awk??? george_ Shell Programming and Scripting 5 04-04-2006 04:58 AM


All times are GMT -4. The time now is 01:39 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password