Hello, there!
I am trying to pass an awk variable into a shell command ['date'] in order to collect the result into an awk variable; in Bash it does work, as in:
v='2'; date -d "now + $v weeks"
But in awk it does not, as in:
v="2"
"date -d 'now + v weeks'" | getline newdate
close ("date -d 'now + v weeks'")
print newdate
Does anyone have any ideas as to why that is so and/or whether it can be done as I need it?
Thank you all, in advance.