I have working scripts with examples of this, so I know something like this can 
be done... 

I have the following line in a bash script:

if [[ "${hn}" =~ *"rds"* ]]; then

The idea being that if ${hn} contains the literal rds, it should match...

It's not working. i.e., when I run the script with -x, it doesn't match the 
string "something.rds.somethingelse"

Does someone see what I'm missing here?

Russell Johnson
[email protected]



_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to