[SHELL: /bin/sh] For loop using variable variable names

view full story

http://www.unix.com – Simple enough problem I think, I just can't seem to get it right. The below doesn't work as intended, it's just a function defined in a much larger script: Code: CheckValues() {     for field in \         Group_ID \         Group_Title \         Rule_ID \         Rule_Severity \         Rule_Version \         Rule_Title \         Rule_Fix_Text; do         if [ ! -n \$${field} ]; then       &nb (HowTos)