#!/usr/bin/awk -f BEGIN { FS=";" system("rm Musik.mlist") system("rm WagnerTech.mlist") system("rm Kino.mlist") } /;M..$/ { print "\""$1"\" <"$2">" >>"Musik.mlist" } /;..W$/ { print "\""$1"\" <"$2">" >>"WagnerTech.mlist" } /;.K.$/ { print "\""$1"\" <"$2">" >>"Kino.mlist" }