#!/bin/bash

# playing with the = operator inside of [[ ]] -
#    here, you compare a string with a *filename-expansion* pattern
#    (a glob) rather than a regular expression (as you'd use with =~ )
# by: Sharon Tuttle
# last modified: 10-10-12

if [[ moo = *o ]]
then
    echo 'moo matched *o'
else
    echo 'moo did NOT match *o'
fi