File: convert_playlist

package info (click to toggle)
mikmod 3.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 892 kB
  • sloc: ansic: 7,241; sh: 2,767; makefile: 136; awk: 10
file content (11 lines) | stat: -rwxr-xr-x 160 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/awk -f
BEGIN {
	FS = "|"
	print "MikMod playlist"
}
{
	if ($2=="")
		printf("\"%s\" \"\" 0 0\n",$1);
	else
		printf("\"%s\" \"%s\" 0 0\n",$2,$1);
}