I used ARGVs for a awk program and it worked well but
it always had some messages like this:
"awk: Cannot find or open file abc...
....The file is abc..."
The command for the awk job I used was
awk -f test.awk test.txt abc
Here, ARGV[0] should be awk, [1] test.txt, which is indeed a file, but ARGV[2]=abc is not a file.
If I print ARGV[2] in the awk, it's really abc...and it could be used in the awk program for data processing...
It looked like just a warning message because everything
else is fine, any idea?
Thanks.
csd
it always had some messages like this:
"awk: Cannot find or open file abc...
....The file is abc..."
The command for the awk job I used was
awk -f test.awk test.txt abc
Here, ARGV[0] should be awk, [1] test.txt, which is indeed a file, but ARGV[2]=abc is not a file.
If I print ARGV[2] in the awk, it's really abc...and it could be used in the awk program for data processing...
It looked like just a warning message because everything
else is fine, any idea?
Thanks.
csd