[PLUG] Bash matching...
Russell Johnson
russ at dimstar.net
Fri Oct 26 22:52:24 UTC 2012
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
russ at dimstar.net
More information about the PLUG
mailing list