The command:
awk –f cs2ss.awk < dataset.csv > dataset.ss
should be using this program:
BEGIN {FS = ",";}
{
for(i=1;i<=NF;i++) {printf("%s ", $i);}
printf("\n");
}
To take all of the commas out of dataset.csv. But it only creates the empty file dataset.ss. I’ve made sure all files being used are .txt and not rtf (using a MacBook). What am I doing wrong?
EDIT: A screenshot of the input file –

The code works. You can test it by simply running
And typing in sample lines of input. So you must be doing something else wrong and that thing is not apparent from here.
Things to try….
Run
If you get non-empty output to the screen, then there’s something odd about the destination file or filesystem. If you get blank output to screen, there’s a problem with the input file.
If it’s the input file, what does
tell you?