aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/lrc2labels
blob: a23b299f057b1ba5329ea062edc1073522a5ac63 (plain)
1
2
3
4
5
6
7
#!/bin/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)
}