Unix/Linux Go Back    

Modulo calculation in shell script

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member michaelrozar17 Regarding:
Modulo calculation in shell script.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 03-21-2011   -   Original Discussion by harjinder
michaelrozar17's Unix or Linux Image
michaelrozar17 michaelrozar17 is offline
Registered User
Join Date: Jul 2010
Last Activity: 22 September 2016, 3:57 AM EDT
Location: IN
Posts: 894
Thanks: 15
Thanked 183 Times in 174 Posts
Can you try as below.
Note: Please use code tags [c ode] ... . . [/code] when posting codes,script,data etc

if [ $a%2 -eq 0 ]