Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 159 Bytes

bash.md

File metadata and controls

13 lines (10 loc) · 159 Bytes

Bash

bash function

Contibuted by: TimRots

$ isEven() {
    [[ "$(($1%2))" == "0" ]] && echo 0
}
$ isEven 4
0