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 {
The file you give is a shell script, not an awk program. So, try sh my.awk.
sh my.awk
If you want to use awk -f my.awk life.csv > life_out.cs, then remove awk -F , ' and the last line from the file and add FS="," in BEGIN.
awk -f my.awk life.csv > life_out.cs
awk -F , '
FS=","
BEGIN