Skip to navigation

Question:
How to detect the OS from a Bash script?

Use simple algorithms as well as simple data structures.