SyntaxFix
Write A Post
Hire A Developer
Questions
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=","