Jan 28, 2007 #1 Yarka Technical User Jan 14, 2007 192 ES How I can know if a number is module another number in bash scripting? For example: 40 module 5 = 0 Thanks.
How I can know if a number is module another number in bash scripting? For example: 40 module 5 = 0 Thanks.
Jan 28, 2007 #2 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE I'm not sure but I think it is the % operator you are referring to. Try this: (( a=40 )) (( amod5=a%5 )) HTH, p5wizard Upvote 0 Downvote
I'm not sure but I think it is the % operator you are referring to. Try this: (( a=40 )) (( amod5=a%5 )) HTH, p5wizard