I have about 20 different variables that I need to check for null values then replace with a specific string if they are null. I've been doing this via 20 different if then statements like this:
if [ "$VAR1" = "" ]; then
WIND="UUU"
fi
Is there a more elegant way to do this? The vars aren't sequential in their name by the way. Thanks for the suggestions as always!