Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
teo_zero
16 days ago
|
parent
|
context
|
favorite
| on:
4 billion if statements (2023)
Scaled up:
case "$1" in *0|*2|*4|*6|*8) echo even;; *) echo odd;; esac
If $1 had a trailing non-digit, or was empty, that would indeed be an odd situation!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: