Here is a snippet of my awk statement..I'm trying to insert these 2 variables in the statement but they are not getting evaluated. Can someone point me in the right direction?
ZONE=`date "+%Z %Y"`
DAY=`date "+%a"`
awk '{if (NR<2) {print "["$1, $2, $3"]"}}'
I'v tried this:
awk '{if (NR<2) {print "[" $DAY, $1, $2, $3, $ZONE "]"}}'
ZONE=`date "+%Z %Y"`
DAY=`date "+%a"`
awk '{if (NR<2) {print "["$1, $2, $3"]"}}'
I'v tried this:
awk '{if (NR<2) {print "[" $DAY, $1, $2, $3, $ZONE "]"}}'