blob: f68ed8ab3a4263ec9c69c3fab8b3630d3205da0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
cnt=$(
cat
)
printf '%s\n' "${cnt}" \
| sed "$(
printf '%s\n' "${cnt}" \
| sed -n '
s/^.*%ERICH-HINWEIS: \([^0-9]\+\)\([0-9]*\) != \(.\+\)%.*$/\1 duration \2 != \3/
T
=
p
' \
| sed '
N
s/^\([0-9]\+\)\n\([^0-9]\+\) duration \([0-9]*\) != \(.*\)$/\1 s@\2\3@<\2 \\\\tweak NoteHead.style #'"'"'cross \4 >\3@g/
'
)"
|