Ghostdog, your bash script had an error of:
"gawk: cmd. line:1: fatal: cannot open file `file' for reading (No such file or directory"
The batch file does the following:
I have multicsv files of different amount of colums. I need to add the file name of each csv file to the last colum under the header of id.
The batch file does the job, but i would like to use it on a linux system.