Russell Johnson wrote:
> 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]
Russell Johnson
Could you use some awk/gawk to extract the values/variables before
comparing?
"index" or "substr" prehaps? Or have I misunderstood?
Regards
Fred James
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug