1

Problem running awk script in Debian 6.0.2

view story
linux-howto

http://www.unix.com – Hello to all, May be some expert could help me. I have the below awk script that works correctly in Cygwin: Code: awk -F\" 'FNR==NR && FNR>1 {gsub(",","",$5); N[$2]=$5;next} $10 in N && FNR>1 { Y[$10]=$8 Z[$10]=(N[$10]==$8)?"Yes:"No"; } END{ for(k in N) {print k,Y[k],N[k],Z[k]?Z[k]:"Not_Found"} }' file2 file1 But when I try to run it in Debian version shown below, the script doesn't print the correct output or Segmentation fault appears: Code: ~$ lsb_release -a No LSB modules are available. Distributor ID: Deb (HowTos)