bash case pattern matching examples - read on nlp-wiki.org