I've downloaded gawk 3.1.6 and started using awk at the CMD prompt.
However I have a mysterious problem:
My input file tt.tx contains:
AAA,BBB
CCC,DDD
EEE,FFF
When I run this script it ignores the text "test". I cant work out why?
Correction:
C:\Users\md\Desktop>awk -F, "{nvar="test"; print $1 nvar $2}" tt.txt
AAABBB
CCCDDD
EEEFFF
However I have a mysterious problem:
My input file tt.tx contains:
AAA,BBB
CCC,DDD
EEE,FFF
When I run this script it ignores the text "test". I cant work out why?
Correction:
C:\Users\md\Desktop>awk -F, "{nvar="test"; print $1 nvar $2}" tt.txt
AAABBB
CCCDDD
EEEFFF