Hi,
I'm trying to use AWK to find a line in a file equal to 2 different variables and write it to another variable. I can find the values individually but I can't work out how to put them together. Here are the lines:
e=`awk '/ALMHT?/' $DIRLOG$CFILE`
f=`awk '$2 == "Active"' $DIRLOG$CFILE`
I want to then test if the variable is null or not and take action based on that.
Thanks
I'm trying to use AWK to find a line in a file equal to 2 different variables and write it to another variable. I can find the values individually but I can't work out how to put them together. Here are the lines:
e=`awk '/ALMHT?/' $DIRLOG$CFILE`
f=`awk '$2 == "Active"' $DIRLOG$CFILE`
I want to then test if the variable is null or not and take action based on that.
Thanks