How should I change this to check whether val has an even or odd numeric value?
val
val=2 if $((RANDOM % $val)); ...
$ a=4 $ [ $((a%2)) -eq 0 ] && echo "even" even $ a=3 $ [ $((a%2)) -eq 0 ] && echo "even"
1.4m articles
1.4m replys
5 comments
57.0k users