in reply to Re^5: AWK? Split one file in seperate files based on country
in thread AWK? Split one file in seperate files based on country

Hi! I've been trying al day and i can't get it to work. I know how to print but i can't figure out how to isolate the first line and repeat it in al the output files. (i'm starting to learn how to navigate columns but lines prove to be al little bit more difficult for me.) I hope you can give me advice one more time?
  • Comment on Re^6: AWK? Split one file in seperate files based on country

Replies are listed 'Best First'.
Re^7: AWK? Split one file in seperate files based on country
by choroba (Cardinal) on May 31, 2012 at 14:09 UTC
    In my example, between lines 13 and 14, insert the following:
    print {$OUT} "country_name;region;city;etc;etc;etc\n";