I am converting a CSV file into a table format, and I wrote an AWK script and saved it as my.awk. Here is the my script:
#AWK for test awk -F , \' BEGIN {
Put the part from BEGIN....END{} inside a file and name it like my.awk.
BEGIN....END{}
And then execute it like below:
awk -f my.awk life.csv >output.txt
Also I see a field separator as ,. You can add that in the begin block of the .awk file as FS=","
,
FS=","