i have variable have code has variable never gets awk
code: select all
hour=$(date +"%l" | perl -p -e s"/[\s]+//")
code: select all
awk 'p; /wed,may 4 "$hour":00pm/ {p=1}'
variable expansion doesn't happen inside strings single quotes, inside strings double quotes. print
code: select all
string="hello" echo "$string there" echo '$string there'
code: select all
hello there $string there
raspberrypi
Comments
Post a Comment