awk variable assignment arguments don't seem to work as expected when
interleaved with process substitution arguments:
########################################
$ awk --version
awk version 20070501
$ echo ${.sh.version}
Version JM 93u+ 2012-02-29
$ echo file1 > file1.txt
$ echo file2 > file2.txt
$ echo file3 > file3.txt
$ awk '{print var, $0}' var=first file1.txt var=second file2.txt
var=third file3.txt
first file1
second file2
third file3
$ awk '{print var, $0}' var=first <(cat file1.txt) var=second <(cat
file2.txt) var=third <(cat file3.txt)
first file1
first file2
first file3
########################################
Is there an explanation for this? I've tested this on Mac OS X 10.7.4
and FreeBSD 9.0.
--
Nathan Weeks
IT Specialist
USDA-ARS Corn Insects and Crop Genetics Research Unit
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users