aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local/share/bin/executable_lrc2labels
blob: e1af473a439d6298dcf12cc78edc929e592ec6df (plain)
1
2
3
4
5
6
7
#!/usr/bin/env gawk -f
match($0, /^\[([0-9]{2}):([0-9]{2}\.[0-9]{2})\](.*)/, group) {
	time = group[1] * 60 + group[2]
	lyric = group[3]

	printf("%.2f\t%.2f\t%s\n", time, time, lyric)
}