0
I don't know ,why I can't print from to file. My command:
awk 'BEGIN{print "af">file}'
Error:
fatal: expression for `>>' redirection has null string value
0
I don't know ,why I can't print from to file. My command:
awk 'BEGIN{print "af">file}'
Error:
fatal: expression for `>>' redirection has null string value
2
file
needs to be in quotes else awk will attempt to parse file
as a variable rather than a string:
awk 'BEGIN{print "af">"file"}'
... or else
file
has to be assigned a value:awk 'BEGIN {file="mytest"; print "af">file}'
. – Scott – 2015-09-02T05:16:30.177