[Solved] how to use strcmp in g++

The problem isn’t on the function but on the way that you’re using it. int strcmp ( const char * str1, const char * str2 ); strcmp takes two const char * arguments. The error tells you that you are giving the function a char so the problem is on the types of personalNo and/or … Read more

[Solved] Conversion of large .csv file to .prn (around 3.5 GB) in Ubuntu using bash

It’s not clear from your question as you didn’t provide sample input/output we could test against but it SOUNDS like all you’re trying to do is this: $ cat tst.awk BEGIN { split(“7 10 15 12 4″,w) FPAT=”[^,]*|\”[^\”]*\”” } { gsub(/””/,RS) for (i=1;i<=NF;i++) { gsub(/”/,””,$i) gsub(RS,”\””,$i) printf “<%-*s>”, w[i], substr($i,1,w[i]) } print “” } $ … Read more