Quantcast
Channel: d0wn
Viewing all articles
Browse latest Browse all 73

BASH:check if a number is even or odd

$
0
0


In a bash script you might need to check if a var is even or odd , 

in my case im going to use a if to make that check

You can use this simple code to make that check and display the result.

the result will be : 


Viewing all articles
Browse latest Browse all 73